Xcode 5 不会导入配置文件

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

Xcode 5 will not import provisioning profiles

xcodexcode5provisioning-profile

提问by jsherk

So in Xcode 5 I go to Preferences > Accounts and I add a new Apple ID to the left hand column. Note the apple id and password must be correct otherwise they would not be accepted.

因此,在 Xcode 5 中,我转到 Preferences > Accounts 并在左侧栏中添加一个新的 Apple ID。注意apple id 和密码必须正确,否则将不被接受。

So now I click on this new apple id on the left, and then click on View Details on the right and the Provisioning Profiles section is empty. I then click on the little round refresh/import button and it spins for 5 or 10 seconds and then returns to an arrow and no provisioning profiles have been added.

所以现在我点击左边这个新的apple id,然后点击右边的View Details,Provisioning Profiles部分是空的。然后我单击小圆形刷新/导入按钮,它会旋转 5 或 10 秒,然后返回一个箭头,并且没有添加任何配置文件。

If I log into the Apple Provisioning Portal, there are 16 provisioning profiles sitting there waiting to be used, all of which were created with a CSR generated from my computer which I am trying to import them on.

如果我登录 Apple Provisioning Portal,那里有 16 个配置文件等待使用,所有这些都是使用从我的计算机生成的 CSR 创建的,我正在尝试将其导入。

Anybody have any ideas why it would not be downloading these profiles?

有人知道为什么不下载这些配置文件吗?

EDIT: Also note that I have three other developer accounts that I work with in my Xcode and they import fine. It is only the 1 of 4 that does not work.

编辑:另请注意,我在 Xcode 中使用了其他三个开发人员帐户,并且它们可以正常导入。只有 4 个中的 1 个不起作用。

采纳答案by jsherk

New Answer (solved)...

新答案(已解决)...

Okay so I finally figured out what the problem was. In the Apple Provisioning Portal, the account that would not import, did not have any devicesadded. Once I added a device, then the import/refresh in Xcode 5 started working for this account.

好的,所以我终于弄清楚了问题所在。在 Apple Provisioning Portal 中,不会导入的帐户没有添加任何设备。添加设备后,Xcode 5 中的导入/刷新就开始为此帐户工作。

Although I had to click refreshbutton twice in Xcode as the first click seemed to create all the Team Provisioning Profiles in the portal and then the second click imported them all.

尽管我不得不在 Xcode 中单击两次刷新按钮,因为第一次单击似乎在门户中创建了所有团队供应配置文件,然后第二次单击将它们全部导入。

Edit: I realized that the problem occurs because Xcode now wants to manage your provisioning profiles for you. If you do not have any development profiles then Xcode will try to create it, but since there are no devices added, it cannot create the profile and therefore fails (without giving an error) and does not import anything either.

编辑:我意识到问题的发生是因为 Xcode 现在想要为您管理您的配置文件。如果您没有任何开发配置文件,那么 Xcode 将尝试创建它,但由于没有添加设备,它无法创建配置文件,因此失败(不会给出错误)并且也不会导入任何内容。

Workaround if import does not work (old answer before I solved it)

如果导入不起作用,解决方法(在我解决之前的旧答案)

For lack of figuring out what the problem is with the one account, I did the following:

由于没有弄清楚一个帐户的问题是什么,我做了以下事情:

(1) Downloaded all the provisioning profiles from the provisioning portal to my desktop.

(1) 将所有配置文件从配置门户下载到我的桌​​面。

(2) Downloaded most recent version of the iPhone Configuration Utility from http://support.apple.com/downloads/#iphone%20configuration%20utility

(2) 从http://support.apple.com/downloads/#iphone%20configuration%20utility下载最新版本的 iPhone 配置实用程序

(3) Ran iPhone Configuration Utility and dragged and dropped all the downloaded provisioning profiles into it.

(3) 运行 iPhone 配置实用程序并将所有下载的配置文件拖放到其中。

(4) Ran Xcode again and the provisoning profiles were now available.

(4) 再次运行 Xcode,配置文件现在可用。

回答by duncan

I had the same problem on a fresh Mavericks install with XCode 5.0.1.

我在使用 XCode 5.0.1 的全新 Mavericks 安装时遇到了同样的问题。

It appears to have fixed itself. I'm not sure exactly what solved it, but I was fortunate enough to have Xcode4 on an old OS X 10.8 partition, so I launched that from within Mavericks and I'm pretty sure that succeeded in downloaded all the provisioning profiles when Xcode 5 couldn't. I opened them in Finder and double-clicked on the one I was interested in.

它似乎已经修复了自己。我不确定到底是什么解决了它,但我很幸运在旧的 OS X 10.8 分区上安装了 Xcode4,所以我从 Mavericks 中启动了它,我很确定在 Xcode 5 时成功下载了所有配置文件不能。我在 Finder 中打开它们并双击我感兴趣的那个。

You may want to check ~/Library/MobileDevice/Provisioning Profiles in case they are there but Xcode is ignoring them. Otherwise, you may have to download them (or maybe just one) from the Apple dev portal and try double-clicking on it to kick Xcode into action.

您可能需要检查 ~/Library/MobileDevice/Provisioning Profiles 以防它们在那里但 Xcode 忽略它们。否则,您可能必须从 Apple 开发门户下载它们(或者可能只是一个),然后尝试双击它以启动 Xcode。

Hope that helps someone.

希望能帮助某人。