Silviu St
Silviu St

Reputation: 1842

Xcode 7 stuck on "Validating application" when running application on iOS9

I'm trying to run application on my iOS 9 iPad with Xcode 7 and it gets stuck on "Validating application".

Screenshot:
enter image description here

Upvotes: 14

Views: 7398

Answers (8)

Steven Craft
Steven Craft

Reputation: 1253

I didn't want to restart Xcode (as I wanted to maintain my undo buffer), but found the following worked:

  1. Unplug the cable from iPhone
  2. Uninstall the app from iPhone
  3. Perform clean in Xcode
  4. Plug phone back in
  5. Set phone as the active target
  6. Build
  7. Run

Upvotes: 1

Mars
Mars

Reputation: 2572

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

Hope that's an option for you!

Upvotes: 1

Joseph Lin
Joseph Lin

Reputation: 3334

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.

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.

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.

Upvotes: 1

Tyson Vignesh
Tyson Vignesh

Reputation: 315

Disconnect and reconnect the data cable is worked for me. No need to reboot the iphone/ipad or Mac

Upvotes: 2

dev296
dev296

Reputation: 224

If you are not planning to release on AppStore and only creating an ad hoc build for testing, then do the following:

In Xcode 7, Goto Product -> Scheme -> Edit Scheme From the left menu select "Archive" and Select "Distribution" from the "Build Configuration" drop down.

enter image description here

Upvotes: 1

kraag22
kraag22

Reputation: 3514

I restarted mac, ipad, xcode multiple times, deleted derrived data and after many unsuccessfull tries, I was able to run my app on iPad.

Upvotes: 2

Tatarasanu Victor
Tatarasanu Victor

Reputation: 654

I had to restart my iphone also.

Upvotes: 10

Robin Thuran Malhotra
Robin Thuran Malhotra

Reputation: 594

Reboot your mac and/or restart Xcode. Fixed it for me.

Upvotes: 16

Related Questions