Cordova terminating with uncaught exception of type NSException
https://github.com/katzer/cordova-plugin-background-mode/issues/381
Error: Error code 1 for command: xcodebuild with args: -xcconfig,/Users/Geek/work/lim-app/platforms/ios/cordova/build-debug.xcconfig,-workspace,深度智投.xcworkspace,-scheme,深度智投,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,深度智投.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/Geek/work/lim-app/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/Geek/work/lim-app/platforms/ios/build/sharedpch
[ERROR] An error occurred while running subprocess cordova.
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL URLByAppendingPathComponent:isDirectory:]: component, components, or pathExtension cannot be nil.'
UIApplicationMain(argc, argv, nil, @"AppDelegate");
import "JPUSHService.h"
_requiresUserActionForMediaPlayback
- 打包安卓(linux)
1.檢查是否安裝了java
java -version
輸出java版本:
java version "1.8.0_121"
2.安裝Android studio
android studio安裝
3.安裝gradle
mkdir /opt/gradle
unzip -d /opt/gradle gradle-6.0.1-bin.zip
ls /opt/gradle/gradle-6.0.1
檢查是否安裝成功
gradle -v
gradle安裝指南
4.配置環(huán)境變量
當(dāng)前terminal生效
export PATH="$PATH:/安裝路徑/Android/Sdk"
export PATH="$PATH:/安裝路徑/Android/Sdk/tools"
export PATH="$PATH:/安裝路徑/Android/Sdk/tools/bin"
export PATH="$PATH:/安裝路徑/Android/Sdk/platform-tools"
export PATH=$PATH:/安裝路徑/gradle-6.0.1/bin
2.ios報錯:
Terminatingapp due to uncaught exception 'NSInvalidArgumentException', reason: '***-[NSURL URLByAppendingPathComponent:isDirectory:]: component, components, orpathExtension cannot be nil.'
熱更新引起的錯誤饭望。
由于根目錄下的www沒有chcp.json和chcp.manifest這兩個文件习贫。
作者:楊柳
鏈接:http://www.reibang.com/p/62c8779c00fc
來源:簡書
著作權(quán)歸作者所有辞友。商業(yè)轉(zhuǎn)載請聯(lián)系作者獲得授權(quán)孽查,非商業(yè)轉(zhuǎn)載請注明出處。