xcode 无法在 iPhone 上安装配置文件

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

Can't Install Provisioning Profile on iPhone

xcodexcode5code-signingprovisioning-profileios-provisioning

提问by Felipe Lira

I'm developing an iOS app and I've been testing on my iPad so far. As the app is almost finished I tried to test it on my iPhone but I can't install the provisioning profile in it.

我正在开发一个 iOS 应用程序,到目前为止我一直在我的 iPad 上进行测试。由于该应用程序即将完成,我尝试在我的 iPhone 上对其进行测试,但无法在其中安装配置文件。

These are the steps I did: (Xcode 5)

这些是我做的步骤:(Xcode 5)

1) While my iPad was connected to mac I plugged in my iPhone

2) Device was recognized, then I hit the button "Use for development"

3) An error about not having a valid developer ID appear.

4) Then I went to Xcode preferences -> Accounts and I found out there was 2 account for my user (maybe Xcode created another user since I had two simultaneously connected devices?)

5) I then deleted the dummy account, checked the provisioning profile in the portal (it has the 2 devices added to it), opened organizer and clicked on "Add to Member Center" to redownload it but nothing came.

6) I refreshed the profile in User Accounts. Tried to download it again, nothing.

7) I also noticed that the iPad has two entries of the same provisioning profile on from may, when I started developing, and another for today. The iPhone has none.

One thing worth noting is that although I have 2 devices added to the profile I only have 1 certificate (is it correct?)

值得注意的一件事是,虽然我在配置文件中添加了 2 个设备,但我只有 1 个证书(是否正确?)

provisioning profileportalAny ideas?

配置文件门户网站有任何想法吗?

回答by Felipe Lira

It seem to be a Xcode problem. I reboot the mac and next time it presented a message saying an incorrect ID was assigned and an button with a "fix issue" label.

这似乎是一个 Xcode 问题。我重新启动 mac,下次它显示一条消息,说分配了不正确的 ID 和一个带有“修复问题”标签的按钮。

After fixing the issue Xcode downloaded the profile again and it worked.

修复该问题后,Xcode 再次下载了配置文件,并且成功了。