I updated my Xcode to Version 12.4 (12D4e)
and after that I am unable to run my app on my device
iPhone X iOS 14.4.2
.
Its alway show this Error
When I check my device connected status, Its show as connected
Action I applied
-
Clear
DerivedData
folder. -
Unpair device and connected again.
-
Drank 20+ coffees.
11
Answers
I was able to fix the Xcode 12 app install/deployment issue described above:
by doing the following steps:
rm -rf ~/Library/Caches/com.apple.dt.Xcode
).By the way, I’ve a setup very close to yours:
1st solution
I fixed this by:
Closing Xcode
Deleting the current iOS version in my folder that’s related to my device.
Restarting Xcode. Wait a little bit for it to refresh and copy cache files in my case then Run.
Based on Can I delete data from the iOS DeviceSupport directory? it’s ok to delete the iOS DeviceSupport folder.
I noticed when I did it and reconnected my device it re-downloaded the iOS device Support files.
If the support files don’t download and the cache files are not copying, try restarting your computer as well.
I started also getting this error:
Restart your phone and reconnect it to the compter if this happens. Then you should get a message in Xcode saying:
2nd solution
3rd solution
If none of the above worked, I was able to run the program by re-enabling Connect via Network.
After doing this now I can run project via USB.
4th solution
I submitted this bug to Apple. Apple also suggests this can be caused by faulty data cords. Maybe try another cord as well.
This issue keeps happening and it seems like there’s a myriad of reasons that may cause it, and so there are a lot of solutions that fixed it for people. Someone even suggested that none of the fixes actually work, and it’s only the fact that time passes as we try different solutions that actually fixes it. Nevertheless, I will share what worked for me and what I found so far.
a. In the past, the issue was most often caused for me by using an older version of Xcode with a newer iOS. Apple doesn’t always release the version of Xcode that supports the latest iOS at the same time, and this issue sometimes happens as a result of that. There are people who suggest right clicking the Xcode App > Show Package Contents > Developer > Platforms > iPhoneOS.platform > Device Support and renaming the folder for the latest supported version to the one running on the phone (for example renaming 16.0 to 16.1). I’ve had better luck with using the Beta of Xcode if it’s not out yet (in this case using 14.1 RC2 instead of 14.0.1).
b. Incrementing the build number and setting a Display Name. This seems to have fixed the issue after nothing else worked. Again, this seems very random, so it could be unrelated, but it did fix it in my case after nothing else suggested on all the threads about this worked.
c. Deleting the profile in Settings > General > VPN & Device Management
Other suggestions I’ve seen across threads:
Apple really needs better errors and less ridiculous bugs like this.
I had to update Xcode to fix this issue because my version of Xcode did not support my up-to-date iOS version.
Unplug the iPhone, Turn it off and again turn it on and reconnect. It worked for me. Sometimes iPhone Debug connection network server clogs up. When you restart iPhone it reinitiate the connection.
I have the same problem, my solution is update my ios version(15.1 to 15.2 beta)
I tried all the resolvent, nothing worked
DeviceSupport
,Caches
Then I find my ios version(15.1) does not exist in
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
.I try to fix it, but failed.
Finally, I can only update my iOS device to 15.2 beta version, It solved! Xcode is update to beta version too.
My devices original version:
I reset the iPhone network settings and it works!
I’ve had the same issue and also had the problem that I wasn’t able to connect my device by cable (it popped on and of), so I had to use wifi connection on Xcode.
I was able to see the icon of the app created by Xcode on my iOS device, but whenever I tried to start it, it won’t do so giving the "Untrusted Developer" error message.
I fixed this by going to:
Settings > General > VPN & Device Management > Developer App
Here you have to chose the App and consent to trusting it.
I’m on Xcode 13.3 and I fixed this by unplugging and plugging the cable between my MacBook Air and my mini iPad 3.
I fixed it by,
Following the steps : Window > Device and Simulator > Select your device and Right Click on it > Unpair after that re-connect your iOS Device then boom… Clean builds and run the app, it will work for you.
Upon solutions aren’t working for me. Restart my iPhone then all well done.