Xcode:进程启动失败 - 安全
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/26982054/
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
Xcode: Process launch failed - Security
提问by carbocation
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 postand I have tried the following:
我在尝试构建到 iOS 8.1 iPhone 5 中的 Xcode 6 上收到“进程启动失败 - 安全性”错误。我已经查看了之前最相关的 StackOverflow 帖子,并尝试了以下操作:
- Delete all prior Provisioning Profiles on the device.
- Click on the App icon to see if it will offer me a dialogue to say "OK" that I do want to launch the app.
- 删除设备上所有先前的配置文件。
- 单击应用程序图标,看看它是否会为我提供一个对话框,说“确定”我确实想启动该应用程序。
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...
这两个都不成功。当我单击该应用程序以查看它是否会为我提供该对话(或启动我的应用程序)时,没有任何反应。图标闪烁。就是这样。我可以采取任何其他方法来解决这个问题吗?现在我可以在我的设备上测试我的应用程序的唯一方法是通过 TestFlight ...
回答by brandonscript
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).
这是由过期或无效的配置文件引起的(通常是您有一个匹配的捆绑 ID 和两个不匹配的配置文件绑定到不匹配的证书)。
- 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 菜单Window > Devices 中)。
- 断开设备与 Mac 的连接并检查 Settings.app 以确保已清除所有配置文件(或至少是您认为导致问题的配置文件)。
- 重新启动您的设备并保持拔掉电源。
- 删除所有现有的配置文件
~/Library/MobileDevice/Provisioning Profiles
(您可能希望先备份这些配置文件)。如果您在 Xcode 菜单Xcode > Preferences > Accounts 中登录您的 Apple Developer 帐户,现有/当前 Xcode 管理的配置文件将重新出现。 - 再次插入您的设备,它应该可以正常工作。
回答by psijic
On your iPhone , go to settings->general->Device Management->"your account" and than trust your provisioning profile .
在您的 iPhone 上,转到设置->常规->设备管理->“您的帐户”,然后信任您的配置文件。
回答by Idan
In some cases you need to approve the developer (yourself in this case) and in case it doesn't ask you when pressing the app icon (could just give you dismiss option only) go to settings app-> general -> profiles -> You should see the profile there, click on that and approve as trusted.
在某些情况下,您需要批准开发人员(在这种情况下是您自己),如果按下应用程序图标时它没有询问您(只能给您关闭选项),请转到设置应用程序-> 常规-> 配置文件->您应该在那里看到配置文件,单击它并批准为受信任。
回答by DavidH
The answer for me was: The app has installed on your device. Tap the icon and open the application it will pop up a dialogue to say do you trust this app. OK and your away. See Xcode process launch failed: Securityfor more details
我的答案是:该应用程序已安装在您的设备上。点击图标并打开应用程序,它会弹出一个对话框,说您是否信任此应用程序。好的,你走了。有关 更多详细信息,请参阅 Xcode 进程启动失败:安全性
回答by iAnkit
Security issue comes from iOS9 and it is very simple to solve the issue. The alert is displayed like,
安全问题来自iOS9,解决问题很简单。警报显示如下,
Could not launch "Hello World" process launch failed : Security
无法启动“Hello World”进程启动失败:安全
Its very simpler to solve the issue, just open "Settings" in your iPhone/iPad
解决问题非常简单,只需在 iPhone/iPad 中打开“设置”即可
Settings → General → Device Management / Profiles & Device Management → Developer App / Enterprise App → Trust
For Developer profile, you app will be under Developer App section and for Enterprise Profile your app will be under Enterprise APp section.
对于开发人员配置文件,您的应用程序将位于开发人员应用程序部分下,而对于企业配置文件,您的应用程序将位于企业应用程序部分下。
Clean and Run your project Its Done.
清理并运行您的项目就完成了。
回答by Kanak Sony
For those who are looking to clear Provisioning Profiles in latest XCode ( I have Version 10.2), I am writing down the latest path
对于那些希望在最新的 XCode(我有 10.2 版)中清除 Provisioning Profiles 的人,我正在写下最新的路径
Users -> Your User -> Library -> Mobile Device -> Provisioning Profiles