我正在为 iOS 构建 cordova 项目,构建日志看起来不错但是我找不到任何生成的 ipa 文件:
$ npm run cordova platform add ios
$ cat Build.json
{
"ios": {
"debug": {
"codeSignIdentity": "iPhone Developer",
"developmentTeam": "**************",
"packageType": "development",
"automaticProvisioning": true,
"buildFlag": [
"EMBEDDED_CONTENT_CONTAINS_SWIFT = YES",
"ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO"
]
},
"release": {
"codeSignIdentity": "iPhone Developer",
"developmentTeam": "****************",
"packageType": "app-store",
"automaticProvisioning": true,
"buildFlag": [
"EMBEDDED_CONTENT_CONTAINS_SWIFT = YES",
"ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO"
]
}
}
}
$ npm run cordova build ios --release --device
Build log看起来不错。
但是没有ips文件:
$ find . type f -name "*.ipa" | wc -l
0
Xcode 版本为 9.4
[email protected]
Best Answer-推荐答案 strong>
构建命令应该运行为 npm run cordova -- build ios --release --device ,双破折号是必不可少的,否则 npm run 不通过 build ios --release --device 作为参数 到 cordova 脚本。呃,我花了一段时间才发现它。
关于ios - cordova build ios不创建ipa文件,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/51564372/
|