ios Xcode6 错误:“找不到与应用程序匹配的配置文件”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28006773/
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
Xcode6 error: "No matching provisioning profiles found for application"
提问by Andy Schweig
I'm trying to submit my iOS app in Xcode6. When I click Submit or Validate in the organizer, a window pops up that says:
我正在尝试在 Xcode6 中提交我的 iOS 应用程序。当我在管理器中单击提交或验证时,会弹出一个窗口,显示:
Failed to locate or generate matching signing assets:
Xcode attempted to locate or generate matching signing assets and failed to do so because of the following issues:
No matching provisioning profiles found for "Applications/MyApp.app”
None of the valid provisioning profiles allowed the specified entitlements: application-identifier, beta-reports-active, keychain-access-groups.
未能找到或生成匹配的签名资产:
Xcode 尝试定位或生成匹配的签名资产,但由于以下问题而失败:
找不到与“Applications/MyApp.app”匹配的配置文件
没有一个有效的配置文件允许指定的权利:application-identifier、beta-reports-active、keychain-access-groups。
I have created a distribution provisioning profile for this app in the member center and it appears in Xcode. I've looked around and have not found anything online that has told me how to fix this. Can anyone help? Thanks.
我在会员中心为这个应用程序创建了一个分发配置文件,它出现在 Xcode 中。我环顾四周,没有在网上找到任何告诉我如何解决这个问题的信息。任何人都可以帮忙吗?谢谢。
Andy
安迪
采纳答案by Nate Lee
There's a couple possibilities for your issue, but the main causes is what I got from experience as well as other SO answers.
您的问题有几种可能性,但主要原因是我从经验以及其他 SO 答案中得到的。
- Your certificate or profile is outdated, in which case you have to go and regenerate your profiles again. I had this problem before, but Applehas described (partially) this issue.
You haven't set your profile in the
Build Settings/Code Signing
area, along with the appropriate certificates. Verify yourTeam
inGeneral/Identity
and ensure that your profile is properly set.From Xcode 5: Code signing entitlement errors(The image is a bit outdated, but its the same as Xcode 6):
- You are using a beta version of Xcode.
- @jaytrixz states: "I just removed Entitlements.plist in Code Signing Entitlements under Build Settings" which could possibly work. Be sure that your provisioning profiles are configured as well.
- 您的证书或配置文件已过时,在这种情况下,您必须重新生成配置文件。我以前遇到过这个问题,但Apple已经(部分)描述了这个问题。
您尚未在该
Build Settings/Code Signing
区域设置您的个人资料以及相应的证书。验证您Team
的General/Identity
,并确保您的个人资料设置正确。来自Xcode 5:代码签名权利错误(图像有点过时,但与 Xcode 6 相同):
- 您正在使用 Xcode 的测试版。
- @jaytrixz 表示:“我刚刚在构建设置下的代码签名权利中删除了 Entitlements.plist”,这可能有效。确保您的配置文件也已配置。
回答by templeman15
As jaytrixz, wrote in the comments...
作为 jaytrixz,在评论中写道......
"I just removed Entitlements.plist in Code Signing Entitlements under Build Settings "
“我刚刚在 Build Settings 下的 Code Signing Entitlements 中删除了 Entitlements.plist”
I did the same and it worked after an hour of trying other things!
我做了同样的事情,在尝试其他事情一个小时后它起作用了!
回答by kris
There are a lot of answers here, some have worked for me in the past, but not this time. I'd even created a new provisioning profile but that still did not help. Based on the "None of the valid provisioning profiles allowed the specified entitlements" part of the error I tried the following on a hunch and it worked for me:
这里有很多答案,有些在过去对我有用,但这次不是。我什至创建了一个新的配置文件,但这仍然没有帮助。基于“没有任何有效的配置文件允许指定的权利”错误的一部分,我凭直觉尝试了以下操作,它对我有用:
1. add and remove a particular Capability
1. 添加和删除特定的能力
Go to Targets > Capabilities, and turn one on and then off.
I doubt it matters which you choose, I added "Push Notifications" (which I don't need for my app), once it was "ON", I changed it back to "OFF"
转到 Targets > Capabilities,然后打开然后关闭。
我怀疑你选择哪个很重要,我添加了“推送通知”(我的应用程序不需要),一旦它“打开”,我就把它改回“关闭”
2. Archive again
2.再次存档
I am now successfully uploading my app to the store.
我现在已成功将我的应用上传到商店。
回答by Sven van den berghe
Another solution, that fixed this symptom for me, can be found at: Xcode Watchkit: None of the valid provisioning profiles allowed the specified entitlements: beta-reports-active, com.apple.security.application-groups
可以在以下位置找到另一个为我解决此症状的解决方案:Xcode Watchkit:没有任何有效的配置文件允许指定的权利:beta-reports-active, com.apple.security.application-groups
Briefly: clear ~/Library/MobileDevice/Provisioning Profiles
简而言之:清晰 ~/Library/MobileDevice/Provisioning Profiles
回答by shbli
If you are sure you have valid certificate and provisioning profile, then you may need to do the following:
如果您确定拥有有效的证书和配置文件,则可能需要执行以下操作:
I would suggest people to refresh the link between xCode and developer account by doing the following:
我建议人们通过执行以下操作来刷新 xCode 和开发者帐户之间的链接:
Go to Xcode -> Preferences -> Account -> View details -> (Refresh icon)
去 Xcode -> Preferences -> Account -> View details -> (Refresh icon)
Otherwise you may not be able to see the provisioning profile as an option in the build settings (You may only see old profiles)
否则,您可能无法在构建设置中看到配置文件作为选项(您可能只能看到旧配置文件)
A lot of times it gives me connection error, you may need to retry.
很多时候它给我连接错误,你可能需要重试。
Do this refresh every time you edit the provisioning profile or certificate online on apple developer member center
每次您在苹果开发者会员中心在线编辑配置文件或证书时都执行此刷新
回答by yogoo
If certificates and build setting are all good, and you are part of multiple teams, make sure to select the proper team for the app. Clean and archive again.
如果证书和构建设置都很好,并且您是多个团队的一部分,请确保为应用程序选择合适的团队。再次清理并存档。
回答by JulianM
I had another cause for this problem.
我有这个问题的另一个原因。
I had 3 different Configurations (Debug, AdHoc, AppStore). I accidentally had the AdHoc Configuration selected in the Archive Scheme setting and tried to upload the generated archive to the AppStore.
我有 3 种不同的配置(Debug、AdHoc、AppStore)。我不小心在存档方案设置中选择了 AdHoc 配置,并尝试将生成的存档上传到 AppStore。
So setting the Archive configuration to AppStore solved the problem for me.
所以将存档配置设置为 AppStore 为我解决了这个问题。
回答by Cristi B?lu??
It's the year 2017, and the provisions are still not just working. I had to put them on manual mode because automatic didn't worked after struggling half an hour. I have no idea what are those entitlements, i have no entitlements file.
现在是 2017 年,这些规定仍然没有起作用。我不得不将它们置于手动模式,因为在挣扎了半小时后自动不起作用。我不知道这些权利是什么,我没有权利文件。
回答by saltwat5r
In my case, the problem was caused by different Bundle Identifier in Target General tab than in Build Setttings.
就我而言,问题是由 Target General 选项卡中的 Bundle Identifier 与 Build Setttings 中的不同所致。
回答by DrMickeyLauer
Another possible cause for this message is if you accidentally did remove the 'target inclusion checkbox' for the entitlement file –?in that case the error message is slightly misleading...
此消息的另一个可能原因是,如果您不小心删除了权利文件的“目标包含复选框”——在这种情况下,错误消息有点误导...