ios 构建设置使用 UUID 指定配置文件

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

build settings specify a provisioning profile with the UUID

iosiphonexcodecode-signingprovisioning-profile

提问by Crystal

I cannot seem to be able to archive an app on a new computer. I created new provisioning profiles for distribution and development. I created a new Certificate Signing Request. I can build my app on my iPhone, but I cannot archive it. I keep getting the error:

我似乎无法在新计算机上存档应用程序。我为分发和开发创建了新的配置文件。我创建了一个新的证书签名请求。我可以在我的 iPhone 上构建我的应用程序,但我无法归档它。我不断收到错误:

No matching provisioning profiles found Your build settings specify a provisioning profile with the UUID “BD657D9A-...”, however, no such provisioning profile was found. Xcode can resolve this issue by downloading a new provisioning profile from the Member Center.

未找到匹配的配置文件 您的构建设置指定了一个 UUID 为“BD657D9A-...”的配置文件,但是,未找到此类配置文件。Xcode 可以通过从会员中心下载新的配置文件来解决此问题。

I tried clicking on "Fix Issue" and it still continues to be an error. I removed my certificates from the keychain and downloaded it again through the development portal and that didn't work. I've tried cleaning, rebuilding, closing Xcode, and those all do not work either. I have tried to do different combinations of Code Signing-> Automatic, as well as choosing my debug provisioning profile to be my development profile I just created in the dev portal, and manually choosing the distribution profile I just created in the dev portal as well. Both do not seem to work. Any other troubleshooting tips? Thanks.

我尝试单击“修复问题”,但它仍然是一个错误。我从钥匙串中删除了我的证书,然后通过开发门户再次下载了它,但没有用。我试过清理、重建、关闭 Xcode,但这些都不起作用。我尝试了代码签名-> 自动的不同组合,并选择我的调试配置文件作为我刚刚在开发门户中创建的开发配置文件,并手动选择我刚刚在开发门户中创建的分发配置文件. 两者似乎都不起作用。还有其他故障排除提示吗?谢谢。

回答by plivesey

I'm using XCode 7.2 and saw this problem. Restarting XCode solved this for me. Not sure it will always solve the problem, but you may want to try this first.

我正在使用 XCode 7.2 并看到了这个问题。重新启动 XCode 为我解决了这个问题。不确定它是否总能解决问题,但您可能想先尝试一下。

回答by Jibяa? Kha?

I know its too late to put an answer here but this question comes up at the top after searching this issue. I managed to solve this by selecting the project and in Build settingschanged the UUIDoptions to what I wanted.

我知道在这里给出答案为时已晚,但在搜索此问题后,这个问题出现在顶部。我设法通过选择项目并将选项Build settings更改为UUID我想要的来解决这个问题。

enter image description here

在此处输入图片说明

回答by n8yn8

If you are now using Xcode 7.2, it appears you will receive this message if you download individual profiles either from the Developer Center or from Xcode > Preferences > Account. Select Team Name and View Details > Provisioning Profiles section. I downloaded individual profiles (I've got several dozen so its hard to find a particular one) and was running into this error. Even if you select Download All after downloading individual profiles, this error still comes up.

如果您现在使用 Xcode 7.2,如果您从开发人员中心或从 Xcode > 首选项 > 帐户下载个人配置文件,您似乎会收到此消息。选择团队名称和查看详细信息 > 供应配置文件部分。我下载了个人配置文件(我有几十个,所以很难找到一个特定的)并且遇到了这个错误。即使您在下载单个配置文件后选择全部下载,仍然会出现此错误。

You will need to find the Provisioning Profiles and delete them then select Download All. Easiest way is to right click on a profile in an Account's details that is already downloaded and select Show In Finder and delete them all. Then just select Download All and hopefully your profiles will match up to your Code Signing.

您需要找到配置文件并删除它们,然后选择全部下载。最简单的方法是右键单击已下载的帐户详细信息中的配置文件,然后选择在 Finder 中显示并将它们全部删除。然后只需选择全部下载,希望您的配置文件与您的代码签名相匹配。

See: Xcode 7.2 no matching provisioning profiles found

请参阅:Xcode 7.2 未找到匹配的配置文件

回答by Ronny Webers

I had this issue with Xcode 7.2 and an example I downloaded from a tutorial site, and I tried to run this on my iPhone.

我在 Xcode 7.2 和我从教程站点下载的示例中遇到了这个问题,我尝试在我的 iPhone 上运行它。

For me this simple solution worked :

对我来说,这个简单的解决方案有效:

1) under 'Build settings' -> 'Code signing' : you'll find the 'hard coded' UUID of the original creator -> change this to 'automatic' for both the debug and release:

1) 在“构建设置”->“代码签名”下:您将找到原始创建者的“硬编码”UUID-> 将其更改为“自动”以进行调试和发布:

enter image description here

在此处输入图片说明

2) under 'General' -> 'Identity' -> Team : select your provisioning profile. You can also update the bundle identifier if needed.

2) 在“常规”->“身份”-> 团队下:选择您的配置文件。如果需要,您还可以更新包标识符。

enter image description here

在此处输入图片说明

3) a 'clean' is always a good idea after such changes, then build

3)在进行此类更改后,“干净”始终是一个好主意,然后再构建

this solved the issue for me!

这为我解决了这个问题!

回答by Dion Cho

This is a known issue of Xcode 7.1. In my case, recreating the profile was the only successful workaround

这是 Xcode 7.1 的一个已知问题。就我而言,重新创建配置文件是唯一成功的解决方法

  1. Delete the previous distribution profile at the Member Centre
  2. Recreate the distribution profile
  3. Archive with the recreated profile
  1. 在会员中心删除以前的分发配置文件
  2. 重新创建分发配置文件
  3. 使用重新创建的配置文件存档

回答by Matthijs Bierman

Deleting the DerivedData for the project worked for me:

删除项目的 DerivedData 对我有用:

rm -rf ~/Library/Developer/Xcode/DerivedData/AppName

回答by AshleyC

I was getting the same error when i tried to archive, tried re-starting XCode, cleaning, rebuilding, nothing worked for a while. Then with the target selected as my project, under General -> Identity -> Bundle identifier, I just deleted and then re-typed the same exact (i know it's silly!) bundle identifier name and then tried to archive again, this time it worked. Such a crazy bug.

当我尝试存档时遇到同样的错误,尝试重新启动 XCode,清理,重建,一段时间没有任何效果。然后将目标选为我的项目,在 General -> Identity -> Bundle identifier 下,我刚刚删除并重新键入相同的(我知道这很傻!)bundle identifier name,然后再次尝试存档,这次是工作。这么疯狂的bug。

回答by sagaraya

I updated Xcode7.1 to 7.1.1. Then, solved this problem.

我将 Xcode7.1 更新为 7.1.1。然后,解决了这个问题。

回答by Alex Peda

Try to use iPhone Configuration Utilityand XCode organizer to ensure all certificates/provisions are configured correctly (they should be marked as green ones). Please check if your device is included into certificate/provision on Apple Developer.

尝试使用iPhone 配置实用程序和 XCode 管理器来确保正确配置所有证书/规定(它们应标记为绿色)。请检查您的设备是否包含在 Apple Developer 的证书/配置中。

Such verifying and killing/opening XCode (kill it totally, in use of Activity Monitor) worked for me

这种验证和杀死/打开 XCode(完全杀死它,使用活动监视器)对我有用

回答by Same7Farouk

I opened project.pbxproj with text editor and searched for UUID and delete the line like this PROVISIONING_PROFILE = "UUID";

我用文本编辑器打开了 project.pbxproj 并搜索了 UUID 并删除了这样的行 PROVISIONING_PROFILE = "UUID";