简体   繁体   English

将应用程序上传到iTunes连接时如何解决Xcode验证错误?

[英]How to solve Xcode validation errors when uploading app to iTunes connect?

For the past 4 days, I have been going crazy trying to upload my iOS mobile application to iTunes connect and so far I have only received errors during validation checks. 在过去的4天里,我一直在疯狂尝试将我的iOS移动应用程序上传到iTunes连接,到目前为止,我只在验证检查期间收到错误。 [Errors: ITMS-90046,ITMS-90685,ITMS-90347] [错误:ITMS-90046,ITMS-90685,ITMS-90347]

I have checked several stack overflow solutions ranging from hard quitting Xcode, checking signatures, verifying capabilities, deleting developer profiles and many others. 我检查了几个堆栈溢出解决方案,包括硬退出Xcode,检查签名,验证功能,删除开发人员配置文件等等。 On the other hand, I have also used google to search for anything that could help my case and so far nothing. 另一方面,我也使用谷歌搜索任何可以帮助我的情况,到目前为止没有任何东西。

This is exactly the error that I have. 这正是我所犯的错误。

 App Store Connect Operation Error ERROR ITMS-90046: "Invalid Code Signing Entitlements. Your application bundle's signature contains code signing entitlements that are not supported on iOS. Specifically, value 'applinks:appname.page.link/WSBG' for key 'com.apple.developer.associated-domains' in 'Payload/appname.app/appname' is not supported." App Store Connect Operation Error ERROR ITMS-90685: "CFBundleIdentifier Collision. There is more than one bundle with the CFBundleIdentifier value '' under the iOS application ''." App Store Connect Operation Error ERROR ITMS-90347: "Bad bundle identifier. The bundle identifier '' of the application extension appname.app/PlugIns/OtchitandaNotification.appex should start with the application's bundle identifier 'com.appname.App' and not contain more than one period “.” after the application's bundle ID." 
  1. Link for above error screenshot 链接上面的错误截图
  2. Link for entitlements screenshot 权利链接截图
  3. Link for signing settings in build settings screenshot 在构建设置屏幕截图中签名设置的链接

What options would you advise me to try to solve these issues? 您建议我尝试解决这些问题有哪些选择? I am literally lost and have tried many solutions that have failed. 我真的迷失了,并尝试了许多失败的解决方案。

For the first error, there are various articles that stated that dynamic links and web credentials should be were I have placed them. 对于第一个错误,有各种文章声明我应该放置动态链接和Web凭据。

For the second and third error, I have double checked both bundle identifiers on my targets which are composed of "AppName" and "appNameNotification" with the latter being an extension. 对于第二个和第三个错误,我已经仔细检查了我的目标上的两个包标识符,这些标识符由“AppName”和“appNameNotification”组成,后者是扩展名。

I have found a solution for error 2 and 3. I was using two targets, one being the main app and another being an extension of the main app. 我找到了错误2和3的解决方案。我使用了两个目标,一个是主应用程序,另一个是主应用程序的扩展。

I made the mistake of using a single bundle identifier for both targets when I should have two because when I use an extension I have to consider it to be a second application. 当我应该有两个目标时,我错误地为两个目标使用单个包标识符,因为当我使用扩展时,我必须将它视为第二个应用程序。

Therefore, the solution was to create a new app ID with a bundle identifier specifically for the extension alongside provision profiles for that bundle ID (extension target). 因此,解决方案是创建一个新的应用程序ID,其中包含专门用于扩展的包标识符以及该包ID(扩展目标)的配置文件。

XCode is annoying XCode很烦人

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM