Xcode 8 和 iOS 10 Cordova 项目上的代码签名错误 [英] Code Sign Error on Xcode 8 and iOS 10 Cordova Project

查看:27
本文介绍了Xcode 8 和 iOS 10 Cordova 项目上的代码签名错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 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 iOSiOS 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.

=== BUILD TARGET * of project * WITH CONFIGURATION Debug ===

=== BUILD TARGET * OF PROJECT * WITH CONFIGURATION Debug ===

检查依赖关系 签署*"需要一个开发团队.在项目编辑器中选择一个开发团队.**SDK 'iOS 10.0' 中的产品类型 'Application' 需要代码签名

这在更新前运行良好.更新后 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

我的 Xcode 设置有正确的证书和配置文件.

I have got my Xcode setup with proper certificates and provisioning profiles.

推荐答案

正如 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.

要从此修复中受益,您必须像这样安装最新的开发版本

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

它应该可以工作!

这篇关于Xcode 8 和 iOS 10 Cordova 项目上的代码签名错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆