xcode iPhone“手机”没有用于签署应用程序的配置文件

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

The iPhone “phone” doesn’t have the provisioning profile with which the application was signed

iphoneobjective-cxcodeprovisioning

提问by eda

I have tried everything to fix this provision problem and nothing is working. I've reformated my Mac, reinstalled the iPhone, I've also dragged the provisions (developer and distribution) onto the Organizer, iTunes, and Xcode.

我已经尝试了一切来解决这个供应问题,但没有任何效果。我重新调整了我的 Mac,重新安装了 iPhone,我还将规定(开发者和发行版)拖到了管理器、iTunes 和 Xcode 上。

In iTunes people say to drag the provisions to the iPhone icon but that doesn't work; it's only able to go under Library (it shows a blue rectangle for me to drop it there). I just have a newly created dummy app with a 57x57 icon. I've also setup the project with the distribution thing with its distribution provision. When I build I get this:

在 iTunes 中,人们说将规定拖到 iPhone 图标上,但这不起作用;它只能进入图书馆(它显示了一个蓝色矩形让我把它放在那里)。我只有一个新创建的带有 57x57 图标的虚拟应用程序。我还设置了带有分发内容的项目及其分发条款。当我构建时,我得到了这个:

The iPhone “myphone” doesn't have the provisioning profile with which the application was signed.

Click “Install and Run” to install the provisioning profile “distribution” on “myphone” and continue running “helloworld.app”.

and it has a button "install and run" ive clicked on that hundreths of times and nothing.

它有一个“安装并运行”按钮,我点击了数百次却什么也没有。

in orgranizer I see a tab called Console. I've cleared it and rebuild the app and there is some output that I dont understand. I'm thinking its my problem whats it mean?

在组织者中,我看到一个名为 Console 的选项卡。我已经清除它并重建应用程序,但有一些我不明白的输出。我在想这是我的问题这是什么意思?

Fri Mar 26 11:22:19 unknown misagent[215] <Error>: profile not valid: 0xe8008012
Fri Mar 26 11:22:19 unknown mobile_installationd[206] <Error>: 00808600 install_embedded_profile: Skipping the installation of the embedded profile
Fri Mar 26 11:22:20 unknown mobile_installationd[206] <Error>: 00808600 verify_executable: Could not validate signature: e8008015
Fri Mar 26 11:22:20 unknown mobile_installationd[206] <Error>: 00808600 preflight_application_install: Could not verify /var/tmp/install_staging.NEb61T/helloworld.app/helloworld
Fri Mar 26 11:22:20 unknown mobile_installationd[206] <Error>: 00808600 install_application: Could not preflight application install
Fri Mar 26 11:22:20 unknown mobile_installation_proxy[219] <Error>: handle_install: Installation failed
Fri Mar 26 11:22:20 unknown mobile_installationd[206] <Error>: 00808600 handle_install: API failed
Fri Mar 26 11:22:20 unknown mobile_installationd[206] <Error>: 00808600 send_message: failed to send mach message of 64 bytes: 10000003
Fri Mar 26 11:22:20 unknown mobile_installationd[206] <Error>: 00808600 send_error: Could not send error response to client
Fri Mar 26 11:22:42 unknown misagent[231] <Error>: profile not valid: 0xe8008012
Fri Mar 26 11:22:43 unknown mobile_installationd[206] <Error>: 00809800 install_embedded_profile: Skipping the installation of the embedded profile
Fri Mar 26 11:22:43 unknown mobile_installationd[206] <Error>: 00809800 verify_executable: Could not validate signature: e8008015
Fri Mar 26 11:22:43 unknown mobile_installationd[206] <Error>: 00809800 preflight_application_install: Could not verify /var/tmp/install_staging.6M55Ay/helloworld.app/helloworld
Fri Mar 26 11:22:43 unknown mobile_installationd[206] <Error>: 00809800 install_application: Could not preflight application install
Fri Mar 26 11:22:43 unknown mobile_installation_proxy[235] <Error>: handle_install: Installation failed
Fri Mar 26 11:22:43 unknown mobile_installationd[206] <Error>: 00809800 handle_install: API failed
Fri Mar 26 11:22:43 unknown mobile_installationd[206] <Error>: 00809800 send_message: failed to send mach message of 64 bytes: 10000003
Fri Mar 26 11:22:43 unknown mobile_installationd[206] <Error>: 00809800 send_error: Could not send error response to client

回答by eda

i figured out the problem.

我解决了这个问题。

what i did was recreate a dummy project and named the project sample. then i created a new development and distribution provision and called it sample. i deleted all the provisions i had currently on my system and added the new ones by selecting both files and dragging it over into the xcode organiser. i also deleted the provision on my iphone by going to settings -> general -> profile -> clicked on remove. then i selected in xcode build -> build and it was successfull. what i was doing was i was a clicking on build and run and whenever i do that i get this error posted above. but when i do a regular build with the device selected in xcode it is 100% sucessfull with no errors. i had to try it in itunes connect to see if the app is sucessfull and i did an upload and it worked!. i cant believe it.

我所做的是重新创建一个虚拟项目并命名该项目示例。然后我创建了一个新的开发和分发条款并将其称为示例。我删除了我当前系统上的所有规定,并通过选择这两个文件并将其拖到 xcode 管理器中来添加新的规定。我还通过转到设置-> 常规-> 个人资料-> 单击删除来删除我的 iphone 上的规定。然后我在 xcode build -> build 中选择了它,它成功了。我正在做的是点击构建和运行,每当我这样做时,我都会收到上面发布的这个错误。但是当我使用在 xcode 中选择的设备进行常规构建时,它 100% 成功,没有错误。我不得不在 iTunes Connect 中尝试它以查看该应用程序是否成功,并且我上传了它并且成功了!我不敢相信。

回答by Jordan

Make sure your Provision profile under Project Settings matches the profiles installed on the iPhone.

确保项目设置下的 Provision 配置文件与 iPhone 上安装的配置文件匹配。

Project Settings

项目设置

Project 201CavTouch201D Info http://img.skitch.com/20100326-ei2k9yha5yknrrcq4hsfgyet7f.preview.jpg项目 201CavTouch201D 信息 http://img.skitch.com/20100326-ei2k9yha5yknrrcq4hsfgyet7f.preview.jpg


For iPhone Check the Organizer menu options from the Window Menu of Xcode.

对于 iPhone,检查 Xcode 窗口菜单中的 Organizer 菜单选项。

Be sure they match.

确保它们匹配。