Xcode 8和iOS 10 Cordova项目上的代码标记错误 [英] Code Sign Error on Xcode 8 and iOS 10 Cordova Project
问题描述
我有一个cordova项目,我在本地部署它在我的iPhone和Android设备上构建和运行。
I have a cordova project which I build and run locally deploying it on my iPhone and android device.
但是我升级到 Xcode 8
和我的iPhone iOS
到 iOS 10
,我不能在本地构建ipas。它会失败,并显示以下错误。
However after i have upgraded to Xcode 8
and my iPhone iOS
to iOS 10
, I cant build ipas locally. It fails with the following error.
===建立目标 * OF PROJECT * WITH CONFIGURATION Debug ===
=== BUILD TARGET * OF PROJECT * WITH CONFIGURATION Debug ===
检查依赖项签署 *需要一个开发团队。
在项目编辑器中选择一个开发团队。
** SDK iOS 6.0中的产品类型应用程序需要代码签名
在更新前完美工作。更新后, iOS
的构建失败。
This was working perfectly before the update. After the update the build for iOS
fails.
该项目的相关版本号是
ios-deploy -V - 1.8.6
xcodebuild -version - Xcode 8.0 Build version 8A218a
I have got my Xcode
setup with proper certificates and provisioning profiles.
推荐答案
如何使用正确的证书和配置文件设置 Xcode
dpogue指出,cordova使用提交修正此问题
As dpogue pointed out, cordova fixed this issue with the commit
92a62997adb3c8512328d5a0ae42fe5d156291f1
92a62997adb3c8512328d5a0ae42fe5d156291f1
这是在他们的iOS平台存储库的主分支。
which is in the master branch of their iOS platform repository.
要从这个修复中受益,你必须安装最新的dev版本像这样
To benefit from this fix, you'll have to install the latest dev version like this
cordova platform remove ios && cordova platform add https://github.com/apache/cordova-ios.git
您需要向您的项目根目录添加一个 build.json
文件,如下所示
And you need to add a build.json
file to your project root that looks like this
{
"ios": {
"debug": {
"developmentTeam": "YOURTEAMID"
},
"release": {
"developmentTeam": "YOURTEAMID"
}
}
}
您可以在此处获取您的小组ID: https://developer.apple.com/account/#/membership
You can get your Team ID here: https://developer.apple.com/account/#/membership
现在运行你的构建
cordova run ios --device
...或指定您的build.json
... or specifying your build.json
cordova run --buildConfig=build.json ios --device
$ b b
它应该工作!
and it should work!
这篇关于Xcode 8和iOS 10 Cordova项目上的代码标记错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!