应用程序协同设计验证失败
尝试将我的应用程序提交到应用程序商店时,我收到以下错误。我完成了初始配置过程,并且能够在手机上运行该应用程序,因此不确定出了什么问题。
Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate.
编辑:我尝试下载并安装分发配置文件,但仍然收到错误。我需要通过某种方式将此新配置文件链接到 XCode 中的应用程序吗?谢谢!
编辑 2: 我现在已经从 Apple 获得了分发配置文件,并尝试使用它进行编译。收到错误“找不到此可执行文件的有效配置文件。”
I'm getting the following error when trying to submit my app to the app store. I went through the initial provisioning process and am able to run the app on my phone so not sure what's wrong.
Application failed codesign verification. The signature was invalid, or it was not signed with an Apple submission certificate.
EDIT: I tried downloading and installing a Distribution profile, but I'm still getting the error. Is there some way I need to link this new profile to my app in XCode? Thanks!
EDIT 2: I've now gotten a distribution provisioning profile from Apple and tried compiling with this. Getting the error "A valid provisioning profile for this executable was not found."
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
验证以下内容:
建议您在项目设置中为 AdHoc 和 App Store 构建进行配置。我发现部署时它让生活变得更轻松。
Verify the following:
It's recommended that you have a configuration in your project settings for AdHoc and App Store builds. I've found it makes life easier when it comes time to deploy.
对于 Xcode 构建警告或存档验证错误“应用程序协同设计验证失败”,请参阅 Apple 对此问题的潜在原因的完整列表,网址为“如何解决错误:应用程序未通过协同设计验证?”。
对于错误“未找到此可执行文件的有效配置文件”,通常会在尝试通过 Xcode 在设备上运行您的应用程序时发生此错误,但您提到要将应用程序上传到商店?确保您按照建议的步骤使用以下命令将 iOS 应用程序上传到商店:
“步骤将您的应用程序提交到 App Store”。
对于其他收到错误“未找到此可执行文件的有效配置文件”的人,请检查您是否按照 Apple 建议的步骤通过 Xcode 在设备上运行“通过 Xcode 在设备上运行应用程序的步骤”。
For the Xcode build warning or Archive Validation error "Application failed codesign verification", see Apple's complete list of potential causes for this problem at "How do I resolve the error: Application failed codesign verification?".
For the error "A valid provisioning profile for this executable was not found", typically this error occurs while attempting to run your app on device thru Xcode yet you mentioned that you're uploading the app to the store? Ensure that you're following the recommended steps for uploading your iOS app to the store using
"Steps to submit your app to the App Store".
For others receiving the error "A valid provisioning profile for this executable was not found" check that you're following Apple's recommended steps for running on device thru Xcode at "Steps to run your app on device thru Xcode".
您可以双击 .mobileprovision 文件,或手动将其复制到 ~/Library/MobileDevice/Provisioning Profiles。然后它将显示在目标设置的配置弹出窗口中。
You can either double click a .mobileprovision file, or manually copy it to ~/Library/MobileDevice/Provisioning Profiles. Then it will show up inside the provisioning popup in your Target settings.
设置项目和活动目标的配置文件。
点击项目->编辑项目设置更改代码签名实体
单击项目 -> 编辑活动目标并在此处更改相同的代码签名实体。
你应该可以走了。
Set the provisioning profile for both Project and Active Target.
Click Project -> Edit Project Settings change the code signing entity
Click Project ->Edit Active Target and change the same code signing entity here as well.
You should be good to go.!
您确定您的配置文件是应用程序商店的分发配置文件而不是开发/临时配置文件吗?
Are you sure you provisioning profile is a distribution profile for app store and not a development/ad-hoc one??
如果您错误地配置了应用程序的“权利”,也可能会导致此错误。一个好的检查位置是 Xcode 的日志导航器(左侧选项卡的最后一页)中是否有警告,并确保在存档项目时构建日志中的 CodeSign 和 Validate 步骤旁边有一个绿色勾号。
This error can also be caused if you incorrectly configured your application's "entitlements". A good place to check is for a warning in Xcode's Log Navigator (last page in left tab) and ensure that there is a green tick next to both the CodeSign and Validate steps in the build log when you Archive your project.
我遇到了同样的问题,这就是我为使其正常工作所做的:
事实证明我的权利文件格式错误。
经过多次尝试和错误,我已经解决了这个问题。为了其他人的理智,这里是正确的配置:
这让它成功验证。我在任何地方都找不到这个记录,所以希望它对其他人有帮助。
I had the same issue and this is what I did to get it to work:
It turned out my Entitlements file was misformed.
Through much trial and error I have figured out the issue. For others' sanity, here is the proper configuration:
This got it to validate successfully. I couldn't find this documented anywhere so hopefully it helps someone else.
这里有一个未列出的解决方案,结果却是我的问题(我花了 3 天才找到!)。将您的存档构建配置设置为发布。您可以通过进入产品 -> 来完成此操作。编辑方案->存档 ->构建配置->准备发布。
祝你好运!
Here is one solution not listed that turned out to be my problem (and took me 3 days to find!). Set your Archive Build Configuration to Release. You can do this by going into PRODUCT -> EDIT SCHEME -> ARCHIVE -> BUILD CONFIGURATION -> SET TO RELEASE.
Good Luck!
我在将 iCloud KVStore 作为功能处于活动状态时遇到了同样的问题:
当我尝试将 'com.apple.developer.ubiquity-kvstore-identifier 标识符更改为主应用程序 KVStore 标识符时,Xcode 无法签名为二进制文件,如
为多个应用配置通用键值存储
I'm facing the same issue having iCloud KVStore as Capability active:
Xcode fails to sign to binary when I try to change the 'com.apple.developer.ubiquity-kvstore-identifier identifier to the main app KVStore Identifier as described in
Configuring Common Key-Value Storage for Multiple Apps