在使用cordova-cli构建iOS平台时出现错误
问题描述:
由于我已从Cordova 6.0.0升级到6.4.0的最新版本,因此我无法成功构建。在使用cordova-cli构建iOS平台时出现错误
我的过程如下:
cordova platform rm ios
cordova platform add https://github.com/apache/cordova-ios.git
cordova build --buildConfig=build.json ios --device
我不能因为我的项目不支持插件的一个建设一个仿真器。
我build.json文件看起来如下:
{
"ios": {
"debug": {
"codeSignIdentity": "iPhone Developer",
"provisioningProfile": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"developmentTeam": "xxxxxxxxxx",
"packageType": "development"
}
}
}
我得到的错误是:
Check dependencies
Bio-Oil Verify requires a provisioning profile. Select a provisioning profile for the "Debug" build configuration in the project editor.
Code signing is required for product type 'Application' in SDK 'iOS 10.1'
至于我的调查显示,我这是建立正确的方法与最新版本的cordova-ios。
我的设置如下:
sw_vers -productVersion(Mac version) 10.12.1
cordova -v 6.4.0
ios-deploy -V 1.9.0
cordova platform list 4.4.0-dev
/usr/bin/xcodebuild -version Xcode 8.1
任何人都可以揭示什么我失踪这里一些轻?
答
我只使用配置文件,尝试删除所有其他属性。
{
"ios": {
"debug": {
"provisioningProfile": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx"
}
}
}
如果这不起作用。打开它未能生成的xcode项目(确切的内部版本号和目录将在输出中)
打开xcode项目,您很可能会看到错误(旁边的红旗标记)您可以勾选,允许xcode自动签名,这应该建立从那时起。
据我所知,让xcode自动签署你的应用程序意味着你的构建配置将被忽略? – skepticscript
你可以提供给我你的构建过程和您正在使用的版本,就像我上面展示的那样? – skepticscript