ios 如何更改我的配置文件?

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

How to change my provisioning profile?

iosxcodeprovisioning-profilead-hoc-distributionadhoc

提问by Declan McKenna

I wanted to add a new beta tester today so updated my provisioning profile to include them. When I attempted to run my app an error appeared saying my profile '*' did not match my profile 'com.HUDKING'. I deleted my old profile and my bundle identifier to check this was not the cause and altered my codesigning as shown below.

我今天想添加一个新的 Beta 测试人员,因此更新了我的配置文件以包含它们。当我尝试运行我的应用程序时出现错误,说我的个人资料“*”与我的个人资料“com.HUDKING”不匹配。我删除了我的旧配置文件和我的包标识符以检查这不是原因并改变了我的代码设计,如下所示。

When I attempt to archive my app I get the following error: Provisioning profile '259FB85E-9614-4A3A-9987-9F4619BA2F9B' can't be found

当我尝试归档我的应用程序时,我收到以下错误: 无法找到配置文件“259FB85E-9614-4A3A-9987-9F4619BA2F9B”

None of my profiles appear to have this identifier, I've set them all manually to ensure the right profiles are selected: enter image description here

我的配置文件似乎都没有这个标识符,我手动设置了它们以确保选择了正确的配置文件: 在此处输入图片说明

How do I fix this? Is there an easier way to run a beta test?

我该如何解决?有没有更简单的方法来运行 beta 测试?

回答by andrew lattis

it sounds like Xcode is still trying to use your old profile, it remembers the ID it was using previously.

听起来 Xcode 仍在尝试使用您的旧配置文件,它会记住以前使用的 ID。

the best answer is to change all of your code signing identities to be the automatically selected entries. otherwise just changing the selected identity and setting to the new profile should work.

最好的答案是将所有代码签名身份更改为自动选择的条目。否则只需将选定的身份和设置更改为新的配置文件就可以了。

回答by Dan

I ran into this earlier today. Try this...

我今天早些时候遇到了这个。尝试这个...

  1. Download the new Prov Profile & install it to Organizer
  2. Go into Organizer and remove all old instances of the Prov Profile tied to that bundle identifier
  3. Build the code (it will fail)
  4. Change the code signing identity to "Don't Sign" (it will fail again)
  5. Clean the build (SHIFT+CMD+K)
  6. Change the code signing identity to the Prov Profile you just downloaded
  7. Build the code again (it should pass)
  1. 下载新的 Prov Profile 并将其安装到 Organizer
  2. 进入管理器并删除与该捆绑包标识符相关联的 Prov Profile 的所有旧实例
  3. 构建代码(它会失败)
  4. 将代码签名身份更改为“不要签名”(会再次失败)
  5. 清理构建(SHIFT+CMD+K)
  6. 将代码签名身份更改为您刚刚下载的 Prov Profile
  7. 再次构建代码(它应该通过)