Xcode:流程启动失败 - 安全性 [英] Xcode: Process launch failed - Security
问题描述
我在Xcode 6上尝试构建iOS 8.1 iPhone 5时出现进程启动失败 - 安全错误。我已经查看了最多之前相关的StackOverflow帖子我尝试了以下内容:
I am getting the "Process launch failed - security" error on Xcode 6 trying to build into an iOS 8.1 iPhone 5. I have reviewed the most relevant prior StackOverflow post and I have tried the following:
- 全部删除先前在设备上配置配置文件。
- 点击应用程序图标,查看它是否会为我提供一个对话框,说确定我想要启动应用程序。
这些都不成功。当我点击应用程序以查看它是否会为我提供对话(或启动我的应用程序)时,没有任何反应。图标闪烁。而已。我可以采取其他任何方法来解决这个问题吗?现在,我可以在我的设备上测试我的应用程序的唯一方法是通过TestFlight ...
Neither of these is successful. When I click on the app to see if it will offer me that dialogue (or launch my app), nothing happens. The icon blinks. That's it. Are there any other approaches I can take to resolve this? Right now the only way I can test my app on my device is via TestFlight...
推荐答案
这是由过期或无效的配置文件(通常是您拥有匹配的软件包ID和两个不匹配的配置文件绑定到不匹配的证书)。
This is caused by expired or invalid provisioning profiles (usually where you have a matching bundle ID and two mismatched provisioning profiles bound to mismatched certificates).
- 删除所有配置文件再次设备(在Xcode菜单中窗口>设备)。
- 断开设备与Mac的连接,并检查Settings.app以确保所有配置文件都已已清理(或至少是您认为导致问题的那些)。
- 重新启动设备并将其拔下。
- 删除所有现有的配置文件来自
〜/ Library / MobileDevice / Provisioning Profiles
(您可能希望先备份这些)。如果您在Xcode菜单 Xcode>首选项>帐户中登录Apple Developer帐户,则会重新显示现有/当前Xcode管理的配置文件。 - 再次插入设备,它应该正常工作。
- Delete all provisioning profiles on the device again (in the Xcode menu Window > Devices).
- Disconnect the device from your Mac and check in Settings.app to ensure all provisioning profiles have been cleaned (or at least the ones you think are causing the problem).
- Reboot your device and leave it unplugged.
- Delete all existing provisioning profiles from
~/Library/MobileDevice/Provisioning Profiles
(you might want to back these up first). If you're logged into your Apple Developer account in the Xcode menu Xcode > Preferences > Accounts, existing/current Xcode-managed provisioning profiles will re-appear. - Plug your device in again and it should be working.
这篇关于Xcode:流程启动失败 - 安全性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!