简体   繁体   English

为什么我的Xcode构建会不断失败?

[英]Why does my Xcode build keep failing?

Any idea why I can't build my iOS app with Xcode? 知道为什么我不能使用Xcode构建我的iOS应用吗? I've successfully built it for the simulators many times, so the app itself isn't the problem. 我已经为模拟器成功构建了很多遍,所以应用程序本身不是问题。 When Xcode fails, it gives me this error message: "Code Sign error: The identity 'iPhone Developer' doesn't match any valid, non-expired certificate/private key pair in the default keychain." 当Xcode失败时,它会显示以下错误消息:“代码签名错误:身份'iPhone Developer'与默认钥匙串中的任何有效,未过期的证书/私钥对不匹配”。

Simple enough, right? 很简单吧? But: In my login keychain, I have two certificates, "iPhone Developer: [My First Name] [My Last Name] ([alphanumeric ID])," and "iPhone Distribution: [Name of My Company]." 但是:在我的登录钥匙串中,我有两个证书:“ iPhone开发人员:[我的名字] [我的姓氏]([字母数字ID])”和“ iPhone发行版:[我的公司名称]”。 Both expire in August 2012. "This certificate is valid," Keychain Access tells me about both of them. 两者都将在2012年8月到期。“此证书有效,”“钥匙串访问”向我讲述了它们两个。

In Organizer, I have three provisioning profiles: "[Name of Company] Distribution," "[Name of App]," and "iOS Team Provisioning Profile: ." 在管理器中,我有三个配置文件:“ [[公司名称]分发”,“ [应用程序名称]”和“ iOS团队配置文件:” All three of these have expiration dates in the future. 所有这三个都有未来的到期日期。 They're all on the platform iOS Profile. 它们都在平台iOS个人资料上。 The first two have an app identifier of [ALPHANUMERICCODE].com.[nameofcompany]. 前两个的应用程序标识符为[ALPHANUMERICCODE] .com。[nameofcompany]。 , the third has an app identifier of simply [ALPHANUMERICCODE].*. ,第三个应用程序的标识符仅为[ALPHANUMERICCODE]。*。 But get this: All three have "Valid signing identity not found" under Status. 但是请注意:这三个状态在“状态”下均具有“找不到有效的签名身份”。

I've done a lot of searching and can't find any examples of anyone reporting both the certificates and the provisioning profiles being present but still being unable to build an archive in Xcode. 我进行了很多搜索,找不到任何人报告存在证书和配置文件的任何示例,但仍然无法在Xcode中建立档案。 Any ideas? 有任何想法吗?

This is a problem with keys. 这是钥匙的问题。 In keychain access, there is a section called keys. 在钥匙串访问中,有一个称为钥匙的部分。 I'm thinking you are missing the keys that were used to sign your provisioning profiles. 我认为您缺少用于签署配置文件的密钥。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么我的xcode项目建立在模拟器上而不是xcode项目中的设备? - Why does my xcode project build on simulator but not device in xcode project? 为什么Xcode 5会一直给我这些错误? - Why does Xcode 5 keep giving me these errors? 为什么我在Xcode 7中为我的桥接标题不断出现此错误:桥接标题不存在? - Why do I keep getting this error for my bridging Header in Xcode 7: Bridging Header does not exsist? 为什么我的“包含 SwiftyDropbox”会导致我的 iOS Xcode Swift 项目出现构建错误? - Why does my "include SwiftyDropbox" cause a build error for my iOS Xcode Swift project? 为什么Xcode 4无法运行我的最新版本? - Why is Xcode 4 not running my latest build? 为什么我的 Xcode 存档版本号与构建版本号不同? - Why does my Xcode archive version number differ from the build version number? 为什么 xCode 无法构建我的 flutter 应用程序,未找到“sqflite”错误 - Why does xCode cannot build my flutter app with 'sqflite' not found error 尝试构建一个新的Xcode项目,但它们始终失败,因为“第14行:EntityRef:期望';' ” - Trying to build a fresh Xcode project, but they keep failing because “ Line 14: EntityRef: expecting ';' ” Cordova App-XCode构建失败 - Cordova App - Build Failing on XCode Flutter iOS Xcode 构建失败 - Flutter iOS Xcode build was failing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM