Xcode 7:“找不到匹配的配置文件”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/33104708/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:02:36  来源:igfitidea点击:

Xcode 7: "No matching provisioning profiles found"

iosxcodeexportprovisioning-profile

提问by AppsDev

I've changed the App ID and created a new provisioning profile for it. The new bundle ID and provisioning profile seem to be correctly set in the target's settings, and I get no warning when archiving it. But when I want to export the archive, Xcode shows me a dialog saying:

我已经更改了 App ID 并为其创建了一个新的配置文件。新的包 ID 和配置文件似乎在目标的设置中正确设置,归档时我没有收到警告。但是当我想导出存档时,Xcode 会向我显示一个对话框:

No matching provisioning profiles found for "Applications/MyApp.app"

找不到与“Applications/MyApp.app”匹配的配置文件

And below it says that:

在它下面说:

None of the valid provisioning profiles allowed the specified entitlements: application-identifier, beta-reports-active, keychain-access-groups

没有一个有效的配置文件允许指定的权利:application-identifier、beta-reports-active、keychain-access-groups

What I'm missing to check/change?

我缺少检查/更改什么?

Thanks

谢谢

EDIT:In the warning dialog I'm also shown the buttons "Visit Member Center" and "Import Developer Profile". Do I need to set a developer profile if I just want to export a distribution binary?

编辑:在警告对话框中,我还显示了“访问会员中心”和“导入开发人员资料”按钮。如果我只想导出分发二进制文件,是否需要设置开发人员配置文件?

回答by Jamil

Go to Member Centerand then "Certificates, identifier and profiles" then create a new developer profile. Download and double click on profile then clean you app. and run.

转到会员中心,然后“证书、标识符和配置文件”然后创建一个新的开发人员配置文件。下载并双击配置文件,然后清理您的应用程序。并运行。

if not solve. see this video https://www.youtube.com/watch?v=wAdV16nRLp8

如果不解决。看这个视频https://www.youtube.com/watch?v=wAdV16nRLp8

回答by Crashalot

What resolved the issue was manually setting Provisioning Profilefor Debugand Releaseto the appropriate values, as opposed to choosing Automatic(i.e., set values to your development and distribution provisioning profiles). Based on this SO answer.

有什么解决这个问题被手动设置Provisioning ProfileDebugRelease为适当的值,而不是选择Automatic(即,您的开发和发行配置的配置文件设定值)。基于这个 SO 答案

回答by user1139733

This worked for me in Xcode 7.2:

这在 Xcode 7.2 中对我有用:

Select your target, then the "General" tab. In the "Identity" section there was a warning that no provisioning profiles were found, and a button that said "Fix issue." I pressed it, and it fixed the issue.

选择您的目标,然后选择“常规”选项卡。在“身份”部分有一个警告,指出没有找到配置文件,还有一个按钮,上面写着“修复问题”。我按下它,它解决了这个问题。

In my case I was missing the automatically generated provisioning profiles because I had changed the bundle ID in an existing project.

就我而言,我缺少自动生成的配置文件,因为我更改了现有项目中的包 ID。

回答by grahamparks

I solved this by creating a provisioning profile with an explicit app Bundle ID rather than a Wildcard one.

我通过使用明确的应用程序包 ID 而不是通配符创建一个配置文件来解决这个问题。

回答by hood

For Xcode 8 ( As I tried it on 8 and it worked) First of all clean the project Xcode-->Product-->Clean Select simulator as Generic IOS Device Then again click on product --> Archive After the archive is made xcode automatically takes you to orgaiser or else you can click on windows--> organiser. here you can see all the archive you have made in past. Now, the main part: Select an archive you want to export. Click on export. Its on right side under the "upload to store Button" When You click it ask to select 1 out of 4 options, select--> Save for Development Deployment (4th option) After This it fetch the account, Make sure you select the account by which you have made provisional profile or signing certificate. Thats it, it will start preparing your IPA. It ask to export your IPA to the preferred location & makes a folder their.

对于 Xcode 8(因为我在 8 上尝试过并且它有效)首先清理项目 Xcode-->Product-->Clean 选择模拟器作为通用 IOS 设备然后再次单击产品 --> 存档 存档完成后 xcode自动将您带到组织者,否则您可以单击 Windows--> 组织者。在这里你可以看到你过去制作的所有档案。现在,主要部分:选择要导出的存档。点击导出。它在“上传到存储按钮”下的右侧当您单击它时要求从 4 个选项中选择 1 个,选择--> 保存用于开发部署(第 4 个选项)之后它获取帐户,请确保选择该帐户您通过它制作了临时配置文件或签名证书。就是这样,它将开始准备您的 IPA。它要求将您的 IPA 导出到首选位置 &

In my case it helped. No other 3 option gave me same error about provisioning profile but not the 4th one.

就我而言,它有所帮助。没有其他 3 个选项给我关于配置文件的相同错误,但不是第 4 个。

回答by WDC

If it is not userful by regenerating your Provisioning profile ,you can try to go to TARGETS/Build Settings/Packing/Product Bundle identifier,Maybe you forget change the bundle identifier.

如果重新生成您的配置文件没有用,您可以尝试转到目标/构建设置/包装/产品包标识符,也许您忘记更改包标识符。