在验证步骤中,有效负载包标识符与 Xcode 不匹配
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19130537/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Payload bundle identifier mismatch with Xcode at validation step
提问by Tony Xu
I got ios app project from someone (say zzz), which has been uploaded to Apple App Store, but removed from the store later somehow (not quite sure why). I now need work on this project.
我从某人那里得到了 ios 应用程序项目(比如 zzz),该项目已上传到 Apple App Store,但后来不知何故从商店中删除(不太清楚为什么)。我现在需要在这个项目上工作。
First, I created an app named 'yyyyy with me' in iTunesConnect. I had tried to created app with name 'yyyyy' but got error saying yyyyy has been used.
首先,我在 iTunesConnect 中创建了一个名为“yyyyy with me”的应用程序。我曾尝试创建名为“yyyyy”的应用程序,但出现错误,提示已使用 yyyyy。
Back to the code I got form zzz, I saw the old bundle id is com.zzz.yyyyy, apparently not mine, so I changed it to mine like com.xxx.yyyyy where xxx is my domain and yyyyy is the app name.
回到我从 zzz 得到的代码,我看到旧的 bundle id 是 com.zzz.yyyyy,显然不是我的,所以我把它改成了我的,比如 com.xxx.yyyyy,其中 xxx 是我的域,yyyyy 是应用程序名称。
When I finished coding, and want to submit the app, at the validate step, I got error saying:
当我完成编码并想要提交应用程序时,在验证步骤中,我收到错误消息:
.....Specifically, value "nnnnnn.com.xxx.yyyyy" for key "application-identifier" is not supported. This value should be a string starting with your TEAMID, followed by a dot, followed by the bundle identifier. The executable at Payload/yyyyy.app/yyyyy in Payload/yyyyy.app has been signed with identifier "com.xxx.yyyyy" which does not match the bundle identifier 'com.zzz.yyyyy".
.....具体来说,不支持键“application-identifier”的值“nnnnnn.com.xxx.yyyyy”。该值应该是一个以您的 TEAMID 开头的字符串,后跟一个点,然后是包标识符。Payload/yyyyy.app 中 Payload/yyyyy.app/yyyyy 处的可执行文件已使用标识符“com.xxx.yyyyy”签名,该标识符与包标识符“com.zzz.yyyyy”不匹配。
I checked the project 'General' tab, and could not find any com.zzz.yyyyy over there, only with mine com.xxx.yyyyy.
我检查了项目“常规”选项卡,在那里找不到任何 com.zzz.yyyyy,只有我的 com.xxx.yyyyy。
What/where is Payload? I hate Apple's code signing, provision stuff! How/what should I do to solve the problem? Thanks.
什么/哪里是有效载荷?我讨厌苹果的代码签名,提供东西!如何/我应该怎么做才能解决问题?谢谢。
BTW, I'm using xcode5. Team is set to none, but when I add my apple account as team, it says my account is already added.
顺便说一句,我正在使用 xcode5。团队设置为无,但是当我将我的苹果帐户添加为团队时,它说我的帐户已被添加。
回答by prolfe
I was having the exact same problem. After doing all the things you probably did, I finally restarted Xcodeand that did the trick. Hope that worked for you too.
我遇到了完全相同的问题。在完成了你可能做过的所有事情之后,我终于重新启动了 Xcode,并且成功了。希望这对你也有用。
回答by zonabi
Rule #1 of Xcode: always try restarting Xcode first (like its 1999). But if that didnt fix this issue (didn't for us) - make sure you have actually created the new iOS App in iTunesConnect.
Xcode 的规则 #1:总是首先尝试重新启动 Xcode(比如它的 1999)。但是,如果这没有解决这个问题(对我们来说没有) - 确保您实际上已经在 iTunesConnect 中创建了新的 iOS 应用程序。