代码签名授权错误:相同的错误源 [英] Code signing entitlement errors: Same error-different cause

查看:102
本文介绍了代码签名授权错误:相同的错误源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到的问题类似于,我没有选择特定于应用程序的配置配置文件,而是选择了要发布的分发配置文件。


I have an issue that is similar to this one. The solution doesn’t work for me and I suspect that it’s because Xcode and Apple have a different idea about what my Team ID is.

I get the same two entitlements errors as the cited post when validating my app. If I look at the Team ID in my Account profile on developer.apple.com, it says something like F65F8MK8HE. The iPhone Distribution certificate in my Keychain says, S88MMLNF5T.

The entitlement error says that the key value is not allowed and uses S88MMLNF5T.com.mydomain.myapp. If I open the archive and look for the file archived-entitlements-expanded.xcent it has two lines with the Team ID. If I replace the Team ID with the one on the website, the archive validates. That’s why I’m guessing the problem is that Xcode and the Apple site have different ideas about what the Team ID is. I’m guessing that I have to delete something to get them to synch up, but from past experience with deleting stuff, I’m hesitant to do anything without understanding what needs to be deleted.

I’m thinking that I should delete the iPhone Distribution certificate in my keychain and let Xcode regenerate what it needs? Does that sound reasonable?

Related to the issue, I can install apps on my devices and they all run. But all of the my old apps crash on launch. I suspect that it has something to do with the old apps using a different Team ID. So if I somehow get Xcode to use the new Team ID, will I be able to update apps in the store without them crashing?

This happens on Mavericks and Xcode 5.0 and 5.0.1.

解决方案

I asked Apple Developer Support this question and the response I got fixed my problem. It might work for others too.

Basically, there is a bug in Xcode that affects a few developers. The workaround is to make my signing section look like this.

Unlike the case that others have had, I did not choose the provisioning profile specific to the app but chose my distribution profile for release.

这篇关于代码签名授权错误:相同的错误源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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