简体   繁体   English

在我的iPhone上运行Xcode项目

[英]run Xcode project on my iPhone

I cannot figure out why Xcode does not allow me to run an Xcode project on my actual device (iPhone 6 version 11.3.1). 我无法弄清楚为什么Xcode不允许我在实际设备(iPhone 6版本11.3.1)上运行Xcode项目。 I have uninstalled Xcode then reinstalled it multiple times. 我已经卸载了Xcode,然后多次重新安装了它。 I have used different devices to test the projects but no success. 我使用了不同的设备来测试项目,但没有成功。 When I test it on Simulators it works perfectly but not on my iPhone. 当我在模拟器上对其进行测试时,它可以完美运行,但在我的iPhone上却无法运行。 Xcode gives me this error ": Task failed with exit 1 signal 0 {". Xcode给我这个错误“:任务失败,退出1信号0 {”。 I am using Xcode 9.3.1, I have an iOS team provisioning profile. 我正在使用Xcode 9.3.1,我有一个iOS团队配置文件。 I have not run a project on my actual device so I do not know if im missing something or there is set up required. 我没有在实际设备上运行项目,所以我不知道我是否缺少某些东西或是否需要设置。 I am not sure what is going on or how to solve this issue. 我不确定发生了什么或如何解决此问题。 your help is very much appreciated. 非常感激你的帮助。

Thank you to those who tried to help. 谢谢那些试图提供帮助的人。 After 3 days of going through this issue It worked. 经过3天的解决此问题后,它起作用了。 FINALLY! 最后! Here is how it worked: Steps: Select the top menu Xcode then select Preferences then Accounts. 它是这样工作的:步骤:选择顶部菜单Xcode,然后选择“首选项”和“帐户”。 Select your account then select Download Manual Profiles. 选择您的帐户,然后选择下载手册配置文件。 Wait until Download is complete then select the Manage Certificates... This will open a new page. 等待下载完成,然后选择“管理证书...”,这将打开一个新页面。 "Signing Certificates for "Your Account Name"" A list of all certificates will be displayed. “为“您的帐户名”签名证书”将显示所有证书的列表。 At the bottom left of this page select the + and from the dropdown list select the Mac Development option. 在此页面左下方,选择+,然后从下拉列表中选择Mac开发选项。 I then got a new Certificate. 然后,我获得了新证书。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM