在 iOS9 上运行应用程序时,Xcode 7 卡在“验证应用程序”上
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/30912982/
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 7 stuck on "Validating application" when running application on iOS9
提问by Silviu St
I'm trying to run application on my iOS 9 iPad with Xcode 7 and it gets stuck on "Validating application
".
我正在尝试使用 Xcode 7 在我的 iOS 9 iPad 上运行应用程序,但它卡在“ Validating application
”上。
Screenshot:
截屏:
采纳答案by Robin Thuran Malhotra
Reboot your mac and/or restart Xcode. Fixed it for me.
重新启动您的 Mac 和/或重新启动 Xcode。为我修好了。
回答by Tatarasanu Victor
I had to restart my iphone also.
我也不得不重新启动我的iphone。
回答by kraag22
I restarted mac, ipad, xcode multiple times, deleted derrived data and after many unsuccessfull tries, I was able to run my app on iPad.
我多次重新启动 mac、ipad、xcode,删除派生数据,经过多次失败尝试后,我能够在 iPad 上运行我的应用程序。
回答by dev296
If you are not planning to release on AppStore and only creating an ad hoc build for testing, then do the following:
如果您不打算在 AppStore 上发布并且只创建一个临时构建用于测试,请执行以下操作:
In Xcode 7, Goto Product -> Scheme -> Edit Scheme From the left menu select "Archive" and Select "Distribution" from the "Build Configuration" drop down.
在 Xcode 7 中,转到 Product -> Scheme -> Edit Scheme 从左侧菜单中选择“Archive”并从“Build Configuration”下拉列表中选择“Distribution”。
回答by Tyson Vignesh
Disconnect and reconnect the data cable is worked for me. No need to reboot the iphone/ipad or Mac
断开并重新连接数据线对我有用。无需重启 iphone/ipad 或 Mac
回答by Joseph Lin
I ran into the same issue with Xcode 8.3 and iOS 9 on the phone. Tried restarting Xcode, computer, the phone- none of them works.
我在手机上使用 Xcode 8.3 和 iOS 9 时遇到了同样的问题。尝试重新启动 Xcode、计算机、电话 - 它们都不起作用。
Turns out, the phone was connected to a Wifi network without internet access. As soon as I connected the phone to another wifi with internet, the app installed fine.
事实证明,手机已连接到 Wifi 网络,但无法访问互联网。一旦我将手机连接到另一个有互联网的 wifi,应用程序就安装得很好。
The working theory is that the phone tries to do run validation against some remote Apple server, which fits the "Validating application"message. It's very unhelpful that it never times out or produce any meaningful error message, though.
工作原理是手机尝试针对某个远程 Apple 服务器执行运行验证,这符合“验证应用程序”消息。但是,它永远不会超时或产生任何有意义的错误消息,这是非常无益的。
回答by Mars
XCode 8.3, iOS10 here. Tried most solutions without much luck
X-Restart phone
X-Restart mac
X-Check WiFi (was connected to internet)
X-Unplug cable (tried both ends)
O-Plug cable into a different USB port
XCode 8.3,iOS10 在这里。尝试了大多数解决方案,但运气不佳
X-Restart phone
X-Restart mac
X-Check WiFi(已连接到互联网)
X-Unplug 电缆(两端都试过)
O-Plug 电缆插入不同的 USB 端口
Hope that's an option for you!
希望这是您的选择!
回答by Steven Craft
I didn't want to restart Xcode (as I wanted to maintain my undo buffer), but found the following worked:
我不想重新启动 Xcode(因为我想维护我的撤消缓冲区),但发现以下方法有效:
- Unplug the cable from iPhone
- Uninstall the app from iPhone
- Perform clean in Xcode
- Plug phone back in
- Set phone as the active target
- Build
- Run
- 从 iPhone 上拔下数据线
- 从 iPhone 卸载应用程序
- 在 Xcode 中执行清理
- 重新插入手机
- 将手机设置为活动目标
- 建造
- 跑