将构建加载到iTunes Connect时,无效的代码签名权利错误 [英] Invalid Code Signing Entitlements errors when loading build to iTunes Connect

查看:275
本文介绍了将构建加载到iTunes Connect时,无效的代码签名权利错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的iOS应用有一个键盘和一个应用组用于通讯。

My iOS app has a keyboard and an app group for communication.

当我尝试上传时使用应用程序加载程序构建时,出现以下错误:

When I try to upload build using Application Loader, I get the following errors:


错误ITMS-90164:无效的代码签名权利应用程式套件签章中的权利与布建设定档中所包含的权利不符。根据布建设定档,套件中包含不允许使用的金钥值:'MYTEAM.iphone.MAINAPP'代表金钥'application 标识符在 Payload / MAINAPP.app / PlugIns / Keyboard.appex / Keyboard中

ERROR ITMS-90164: "Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile. According to the provisioning profile, the bundle contains a key value that is not allowed: 'MYTEAM.iphone.MAINAPP' for the key 'application-identifier' in 'Payload/MAINAPP.app/PlugIns/Keyboard.appex/Keyboard'"

错误ITMS-90163:无效的代码签名权利。您的权利应用程序包签名与配置文件中所包含的密钥不匹配。该软件包包含一个密钥,该密钥未包含在配置文件中: Payload / MAINAPP.app / PlugIns / Keyboard.appex / Keyboard中的 aps-environment '。

ERROR ITMS-90163: "Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile. The bundle contains a key that is not included in the provisioning profile: 'aps-environment' in 'Payload/MAINAPP.app/PlugIns/Keyboard.appex/Keyboard'."

错误ITMS-90046:无效的代码签名权利。您的应用程序包的签名包含iOS上不支持的代码签名权利。具体来说,不支持有效载荷/MAINAPP.app/PlugIns/Keyboard.appex/键盘中的键应用程序标识符的值 MYTEAM.iphone.MAINAPP。该值应该是一个字符串,以您的TEAMID开头,后跟点。,然后是包标识符。

ERROR ITMS-90046: "Invalid Code Signing Entitlements. Your application bundle's signature contains code signing entitlements that are not supported on iOS. Specifically, value 'MYTEAM.iphone.MAINAPP' for key 'application-identifier' in 'Payload/MAINAPP.app/PlugIns/Keyboard.appex/Keyboard' is not supported. This value should be a string starting with your TEAMID, followed by a dot '.', followed by the bundle identifier."

所以,显然,已编译键盘的 application-identifier 是错误的,并且其中包含键 aps-environment 这是多余的,我不明白为什么。我对所有标识符进行了三遍检查在Xcode中,在 membercenter 中提供配置文件和应用程序ID。一切正常。我还删除了所有派生数据,缓存,重新启动了Xcode几次,但这无济于事。

So, obviously, application-identifier of compiled keyboard is wrong, and also it contains key aps-environment which is redundant. I don't understand why. I triple checked all identifiers in Xcode, provision profiles and app ids in membercenter. Everything is ok. I also deleted all derived data, caches, restarted Xcode several times but it didn't help.

推荐答案

我正在命令行的帮助下从存档创建.ipa文件:

I was creating an .ipa file from archive with help of command line:

xcodebuild -exportArchive -archivePath $’MyAppArchive.xcarchive’ -exportPath $"MyApp" -exportFormat ipa -exportProvisioningProfile Provisioning_Profile_Name

仅指定了一个配置文件。就是问题。

With only one provisioning profile specified. That was the problem.

问题可以解决f一个同时指定应用程序和键盘的配置文件(堆栈溢出问题) 。或者您可以像我一样使用Xcode创建.ipa。

Problem could be solved if one specify both profiles for app and for keyboard (stackoverflow question). Or you can simply create .ipa using Xcode, as I did.

这篇关于将构建加载到iTunes Connect时,无效的代码签名权利错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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