ios Xcode 7.2 未找到匹配的配置文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34346436/
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
Xcode 7.2 no matching provisioning profiles found
提问by n8yn8
Before upgrading Xcode to 7.2, I was using Xcode 7.1.1 to build and distribute apps. I have upgraded to Xcode 7.2 and none of my provisioning profiles (matched to that particular app's bundle ID) match my installed certificates that were working in Xcode 7.1.1.
在将 Xcode 升级到 7.2 之前,我使用 Xcode 7.1.1 来构建和分发应用程序。我已升级到 Xcode 7.2,但我的配置文件(与该特定应用程序的捆绑 ID 匹配)都与我在 Xcode 7.1.1 中运行的已安装证书不匹配。
I only get:
我只得到:
Your build settings specify a provisioning profile with the UUID “some_number”, however, no such provisioning profile was found.
您的构建设置指定了一个 UUID 为“some_number”的配置文件,但是,没有找到这样的配置文件。
I have tried regenerating a .certSigningRequest
to generate a new Certificate and Profile and made sure the Team in the General tab of the target is correct. Whenever I select a Provision Profile, all of my Code Signing Identities appear in the Identities in Keychain, but none of them will pair correctly.
我尝试重新生成 a.certSigningRequest
以生成新的证书和配置文件,并确保目标的常规选项卡中的团队是正确的。每当我选择一个配置文件时,我的所有代码签名身份都会出现在钥匙串中的身份中,但它们都不会正确配对。
It seems setting the Provision Profile to Automatic and the Code Signing Identity to iOS Developer will resolve this error, but the advantage of managing my Provisioning Profiles is gone as I believe Xcode then manages these.
似乎将 Provision Profile 设置为 Automatic 并将 Code Signing Identity 设置为 iOS Developer 将解决此错误,但管理我的 Provisioning Profiles 的优势已经消失,因为我相信 Xcode 会管理这些。
Any thoughts on why setting my Provisioning Profiles and Code Signing Identities to anything but Automatic and iOS Developer produces this error?
关于为什么将我的 Provisioning Profiles 和 Code Signing Identities 设置为除 Automatic 和 iOS Developer 之外的任何内容会产生此错误的任何想法?
回答by s3lph
I also had some problems after updating Xcode.
更新Xcode后我也遇到了一些问题。
I fixed it by opening Xcode Preferences (?+,), going to Accounts→ View Details. Then select all provisioning profiles and delete them with backspace (note: they can't be removed in Xcode 7.2). Restart Xcode, else the list doesn't seem to update properly.
我通过打开 Xcode Preferences ( ?+ ,),转到Accounts→ View Details来修复它。然后选择所有配置文件并用退格键删除它们(注意:它们不能在 Xcode 7.2 中删除)。重新启动 Xcode,否则列表似乎无法正确更新。
Now click the Download allbutton, and you should have all provisioning profiles that you defined in the Member center back in Xcode. Don't worry about the Xcode-generated ones (Prefixed with XC:
), Xcode will regenerate them if necessary. Restart Xcode again.
现在单击“全部下载”按钮,您应该拥有您在会员中心定义的所有配置文件回到 Xcode。不要担心 Xcode 生成的(以 为前缀XC:
),如果需要,Xcode 会重新生成它们。再次重启Xcode。
Now go to the Code Signingsection in your Build Settings and select the correct profile and cert.
现在转到构建设置中的代码签名部分,然后选择正确的配置文件和证书。
Why this happens at all? No idea... I gave up on understanding Apple's policies regarding app signing.
为什么会发生这种情况?不知道......我放弃了理解苹果关于应用程序签名的政策。
回答by Tanner Semerad
Try restarting XCode first, before trying these other answers. I was about to follow the advice given in other answers, then noticed multiple people saying that restarting XCode was necessary after all the steps. All I did was restart XCode and it fixed the problem. Who knows if it'll fix the problem for you, but it's worth a shot before trying the other solutions. I'm on XCode 7.2.1.
在尝试这些其他答案之前,请先尝试重新启动 XCode。我正要遵循其他答案中给出的建议,然后注意到很多人说在所有步骤之后重新启动 XCode 是必要的。我所做的只是重新启动 XCode 并解决了问题。谁知道它是否会为您解决问题,但在尝试其他解决方案之前值得一试。我在 XCode 7.2.1 上。
回答by SayeedHussain
Keep quitting Xcode until the damn thing works.
继续退出 Xcode,直到该死的东西起作用为止。
回答by ArunDhwaj IIITH
I've also the same problem, in Xcode 7.2
我也有同样的问题,在 Xcode 7.2
It solved by followings steps:-
它通过以下步骤解决:-
1) Open Xcode preference,
1)打开Xcode首选项,
2) Select the appropriate team,
2)选择合适的团队,
3) Click the "View Details..".
3) 点击“查看详情...”。
4) In section "Signing Identities": click on "Reset" for each of them.
4) 在“签名身份”部分:为每个人单击“重置”。
5) In section "Provisioning Profiles". Click on "Download All".
5) 在“配置文件”部分。点击“全部下载”。
6) Click on "Done."
6) 点击“完成”。
7) Go in Xcode, build settings, select it. In General tab, the issues should get removed.
7)进入Xcode,构建设置,选择它。在常规选项卡中,问题应该被删除。
8) Restart the Xcode.
8)重新启动Xcode。
9) Do the Final build.
9)做最终的构建。
That's all.
就这样。
回答by Dmitry
Download https://developer.apple.com/certificationauthority/AppleWWDRCA.cerand add it to Keychain access > certificates (which expires on 2023)
下载https://developer.apple.com/certificationauthority/AppleWWDRCA.cer并将其添加到钥匙串访问 > 证书(2023 年到期)
回答by alexey.hippie
Also after I did all of suggested steps (btw, for some reasons backspace not remove provision profile) error keeping occurring. Until I finally figured out to Restart Xcode. Probably, it should be first step when you're dealing with Xcode :)
同样在我执行了所有建议的步骤之后(顺便说一句,由于某些原因退格不能删除配置文件)错误不断发生。直到我终于想出重新启动Xcode。可能,这应该是您处理 Xcode 时的第一步:)
回答by John Watkins
Using Xcode 7.3, I spent way too much time trying to figure this out -- none of the answers here or elsewhere did the trick -- and ultimately stumbled into a ridiculously easy solution.
使用 Xcode 7.3,我花了太多时间试图解决这个问题——这里或其他地方的答案都没有解决问题——最终偶然发现了一个非常简单的解决方案。
- In the Xcode preferences team settings, delete all provisioning profiles as mentioned in several other answers. I do this with right click, "Show in Finder," Command+A, delete -- it seems these details have changed over different Xcode versions.
- Do notre-download any profiles. Instead, exit your preferences and rebuild your project (I built it for my connected iPhone). A little while into the build sequence there will be an alert informing you no provisioning profiles were found, and it will ask if you want this to be fixed automatically. Choose to fix it automatically.
- After Xcode does some stuff, you will magically have a new provisioning profile providing what your app needs. I have since uploaded my app for TestFlight and it works great.
- 在 Xcode 首选项团队设置中,删除其他几个答案中提到的所有配置文件。我通过右键单击“在 Finder 中显示”,Command+A,删除来执行此操作——似乎这些细节在不同的 Xcode 版本中发生了变化。
- 不要重新下载任何配置文件。相反,退出您的首选项并重建您的项目(我为我连接的 iPhone 构建了它)。进入构建序列一段时间后,会出现一条警报,通知您未找到任何配置文件,它会询问您是否希望自动修复此问题。选择自动修复。
- 在 Xcode 做了一些事情之后,您将神奇地拥有一个新的配置文件,提供您的应用程序所需的内容。我已经为 TestFlight 上传了我的应用程序,它运行良好。
Hope this helps someone.
希望这可以帮助某人。
回答by Anthony
Check your Keychain - look in Login and System keychains for expired certificates or error messages.
检查您的钥匙串 - 在登录和系统钥匙串中查找过期的证书或错误消息。
I found certs with "this certificate has an invalid user" error messages, and an expired Apple Worldwide Developer Relations Certificate.
我发现证书带有“此证书的用户无效”错误消息,以及过期的 Apple 全球开发者关系证书。
Delete them and install the new AWDRC certificate from https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
删除它们并从https://developer.apple.com/certificationauthority/AppleWWDRCA.cer安装新的 AWDRC 证书
Then follow the accepted answerto get Xcode to use the new certificates.
然后按照接受的答案让 Xcode 使用新证书。
回答by Alphonse R. Dsouza
For me I tried following 2 steps which sadly did not work:
对我来说,我尝试了以下 2 个步骤,但遗憾的是没有奏效:
- deleting all provisional profile from Xcode Preferences Accounts → View Details , downloading freshly all provisional profiles.
- Restarting Xcode everytime.
- 从 Xcode Preferences Accounts → View Details 删除所有临时配置文件,重新下载所有临时配置文件。
- 每次都重启Xcode。
Instead, I tried to solve keychain certificate related another issue given here This certificate has an invalid issuer Apple Push Services
相反,我试图解决与此处给出的另一个问题相关的钥匙串证书 此证书的颁发者无效 Apple Push Services
This certificate has an invalid issuer
此证书的颁发者无效
- In keychain access, go to View -> Show Expired Certificates.
- Look for expired certificates in Login and System keychainsand an "Apple Worldwide Developer Relations Certification Authority".
- Delete all expired certificates.
- After deleting expired certificates, visit the following URL and download the new AppleWWDRCAcertificate, https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
- Double click on the newly downloaded certificate, and install it in your keychain. Can see certificate validmessage.
- 在钥匙串访问中,转到查看 -> 显示过期证书。
- 在登录和系统钥匙串以及“Apple Worldwide Developer Relations Certification Authority”中查找过期的证书 。
- 删除所有过期的证书。
- 删除过期证书后,访问以下网址下载新的AppleWWDRCA证书,https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
- 双击新下载的证书,并将其安装在您的钥匙串中。可以看到证书有效信息。
Now go to xcode app. target → Build Setting → Provisioning Profile . Select value from 'automatic' to appropriate Provisioning profile . Bingo!!! profile mismatch issue is solved.
现在转到 xcode 应用程序。目标 → 构建设置 → 配置文件。从 'automatic' 中选择值到适当的 Provisioning profile 。答对了!!!配置文件不匹配问题已解决。
回答by Hernan Arber
In my case, the problem was that the Archive was being built with a different TEAM-ID than the one who generated the Provisioning Profile (Me). Therefore I Got the error:
就我而言,问题在于存档是使用与生成供应配置文件 (Me) 的 TEAM-ID 不同的 TEAM-ID 构建的。因此我得到了错误:
"No matching provisioning profile found: Your build settings specify a provisioning profile with the UUID, however, no such provisioning profile was found."
“找不到匹配的配置文件:您的构建设置使用 UUID 指定了一个配置文件,但是,没有找到这样的配置文件。”
To Solve this:
解决这个问题:
- Clean and Re-Download your Provisioning profiles from Settings
- Re-Start Xcode
in the GENERAL Tab of the Project properties, got to TEAM:
Change the current team to the Same team but the one under the ACCOUNT you generated the provisioning profile with.
Clean & Build
Viola!
- 从“设置”中清理并重新下载您的配置文件
- 重新启动Xcode
在项目属性的常规选项卡中,进入团队:
将当前团队更改为相同的团队,但在您生成配置文件的帐户下的团队。
清洁与建造
中提琴!
Hope this helps someone.
希望这可以帮助某人。