【ionic4】hybrid app示例

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.配置环境变量
当前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这两个文件。

作者:杨柳
链接:https://www.jianshu.com/p/62c8779c00fc
来源:
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

你可能感兴趣的:(【ionic4】hybrid app示例)