xcode 无法启动应用程序(验证开发者应用程序证书)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36470248/
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
Could not launch app (Verify the Developer App certificate)
提问by OxyFlax
I have an issue sometime when I run the app in my iPhone with Xcode.
当我使用 Xcode 在 iPhone 中运行该应用程序时,有时会遇到问题。
I tried to verify apps in Settings but it didn't work. "Unable to Verify "iPhone Developer: ..." Apps.
我试图在“设置”中验证应用程序,但没有奏效。“无法验证”iPhone 开发人员:...”应用程序。
I am a Free developer but it normally runs and sometime during 1 hour I can't run anything on my iPhone.
我是一名免费开发人员,但它通常会运行,有时在 1 小时内我无法在我的 iPhone 上运行任何东西。
I tried to delete the app and run, to download all profiles in Xcode Settings, same problem.
我试图删除应用程序并运行,以下载 Xcode 设置中的所有配置文件,同样的问题。
Do you have any idea to solve it ?
你有什么解决办法吗?
Thanks for your help.
谢谢你的帮助。
回答by Oliver Pearmain
I had to actually tap the app icon on the iPhone device to launch the app and only then did the iPhone prompt me to Trust the certificate.
我必须实际点击 iPhone 设备上的应用程序图标才能启动该应用程序,然后 iPhone 才提示我信任证书。
I had nothing appropriate listed in Settings > General > Profiles (Settings > General > Device Management on later versions of iOS).
我在“设置”>“通用”>“配置文件”中没有列出任何合适的内容(在更高版本的 iOS 上,“设置”>“通用”>“设备管理”)。
回答by OxyFlax
My wifi connection had proxy which blocked the verification in iPhone settings. Switch to 3G/4G was the solution for me.
我的 wifi 连接有代理,它阻止了 iPhone 设置中的验证。切换到 3G/4G 是我的解决方案。
回答by Meilbn
Maybe you used provisioning profile is distribute not development, in my case, it is.
也许您使用的配置文件是分发而不是开发,就我而言,它是。
When I saw this in Xcode, but there is nothing needs to verify in Settings > General > Profiles, then I just click app on my phone to run it, and system showing a alert view to let me trust it, after TRUST IT, app run well. And after this, you can run app using Xcode, but Xcode will show "process launch failed: timed out waiting for app to launch" prompt.
当我在 Xcode 中看到这个,但是没有什么需要在 Settings > General > Profiles 中验证时,我只需点击手机上的 app 来运行它,系统会显示一个警报视图让我相信它,在 TRUST IT 之后,app运行良好。在此之后,您可以使用 Xcode 运行应用程序,但 Xcode 将显示“进程启动失败:超时等待应用程序启动”提示。
回答by Jayprakash Dubey
There are two solution for this:
对此有两种解决方案:
A. Solution 1:
A. 解决方案 1:
- Run app on device. You should be able to alert 'Trust This Computer'?
- Tap on Trustoption
- Enter device passcode
- Open Settingsapp. Goto Device Management.
- 在设备上运行应用程序。你应该能够提醒“信任这台电脑”?
- 点击信任选项
- 输入设备密码
- 打开设置应用程序。转到设备管理。
- Here you'll be able to see list of profiles used for installing apps on device. Select profileis used to run app on device.
- Tap on Trust “Apple Development:…”
- Again you'll be able to see confirmation pop up alert. Tap on Trust.
- Now you'll see that App is verifiedfor device.
- 在这里,您将能够看到用于在设备上安装应用程序的配置文件列表。选择配置文件用于在设备上运行应用程序。
- 点击信任“Apple Development:...”
- 再次,您将能够看到确认弹出警报。点击信任。
- 现在您将看到该应用已针对设备进行了验证。
B. Solution 2:
B. 解决方案 2:
If your device is not connected to internet/wifithen Xcode shows “Verify the Developer App certificate for your account is trusted on your device…”. Connect your device to internet/wifi and try again.
如果您的设备未连接到互联网/wifi,则 Xcode 会显示“验证您的帐户的开发者应用程序证书在您的设备上是否可信...”。将您的设备连接到互联网/wifi 并重试。
回答by vapor
"A network connection is required to verify." You have to have a valid internet connection (whether 3G/4G data or wifi) or else it won't verify. When it doesn't work for me it's always due to my router being Hymaned up.
“需要网络连接来验证。” 你必须有一个有效的互联网连接(无论是 3G/4G 数据还是 wifi),否则它不会验证。当它对我不起作用时,总是由于我的路由器被顶起。