ios 当我想运行自己的应用程序 iOS9 时,无法在 iPhone 上验证应用程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33148841/
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
Can't verify app on iPhone when I want to run my own app iOS9
提问by Kerry
I created an app using Xcode and I want to run it on my iPhone instead of the simulators. The app has successfully installed in the phone, but when I click it it says "untrusted developer", xCode gives error "Process launch failed: security". So I went to Settings> General> Profile on my phone and I trusted the app, however the application is listed as "Not Verified" and when I click "verify app" nothing happens, and I still can't run the app.
我使用 Xcode 创建了一个应用程序,我想在我的 iPhone 上而不是模拟器上运行它。该应用程序已成功安装在手机中,但是当我单击它时,它显示“不受信任的开发人员”,xCode 出现错误“进程启动失败:安全性”。因此,我在手机上转到“设置”>“常规”>“个人资料”并信任该应用程序,但是该应用程序被列为“未验证”,当我单击“验证应用程序”时,没有任何反应,但我仍然无法运行该应用程序。
回答by Ramaraj T
There are some procedures you need to follow to install the build in iOS 9 using Free provisioning
使用免费配置在 iOS 9 中安装构建版本需要遵循一些步骤
- Open the XCode->Preference->Accounts
- Click the + button in the bottom left, add your apple id
- Your apple id is now added. Click your apple ID, tap the 'View Details' in the right side detail.
- Click the 'create' button near the iOS Develoment identity.
- Then goto your project setting, search for code signing identity, change its value to 'iOS Development'
- Run the app again, Verify/Trust if necessary
- 打开 XCode->Preference->Accounts
- 点击左下角的+按钮,添加你的apple id
- 现在已添加您的 Apple ID。单击您的 Apple ID,点击右侧详细信息中的“查看详细信息”。
- 单击 iOS 开发标识附近的“创建”按钮。
- 然后转到您的项目设置,搜索代码签名标识,将其值更改为“iOS 开发”
- 再次运行应用程序,必要时验证/信任
回答by Adam Shin
I've had this problem a few times. The issue seems to be on Apple's side - verifying apps requires a connection to their server, which was down earlier today. It should be up now (at the time of this posting). Looks like you just have to wait it out when this happens, unfortunately.
我遇到过几次这个问题。问题似乎出在 Apple 一方——验证应用程序需要连接到他们的服务器,但今天早些时候该服务器已关闭。现在应该可以了(在发布这篇文章时)。不幸的是,当发生这种情况时,您似乎只需要等待即可。
回答by Dauntless
I usually encounter this problem when using a web proxy that intercepts SSL connections using a custom certificate (fe Burp or company proxy).
在使用使用自定义证书(fe Burp 或公司代理)拦截 SSL 连接的 Web 代理时,我通常会遇到此问题。
When installing the app, the following happens (I think):
安装应用程序时,会发生以下情况(我认为):
- XCode builds & installs the application
- iOS automatically tries to verify the app
- iOS uses SSL pinning and therefore can't validate the app
- When you press "validate app" now, the internal state is somewhat corrupted
- XCode 构建并安装应用程序
- iOS 会自动尝试验证应用
- iOS 使用 SSL 固定,因此无法验证应用程序
- 当您现在按下“验证应用程序”时,内部状态有些损坏
So in my case, I had to take the following steps:
所以就我而言,我必须采取以下步骤:
- Connect directly to the internet without proxy
- Install the application
- Settings -> Profiles -> my profile -> Trust developer
- The app is already automatically validated
- Switch to the proxied network
- Launch app
- 无需代理即可直接连接到互联网
- 安装应用程序
- 设置 -> 个人资料 -> 我的个人资料 -> 信任开发者
- 该应用程序已经过自动验证
- 切换到代理网络
- 启动应用
I do believe this is some kind of bug in iOS where the validation state is somewhat corrupted because of failed SSL pinning.
我确实相信这是 iOS 中的某种错误,其中由于 SSL 固定失败,验证状态有些损坏。