Hi. I have Xcode version 13.2.1 and when I try to run the app on iPhone I get this error: "This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your mac and device in order to correctly detect compatibility." So basically I can not run it on my device. iOS version on iPhone is 15.4.1. I tried to reboot both laptop and iPhone and it didn't work. What can I do to test my app?
This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode.
Update to the latest version of Xcode (13.3.1)
Is there another way to solve this? Update to that version is not a possibility, I use third party libraries that don't work with that xcode version.
Same issue here
Solved here https://stackoverflow.com/a/71667372/2957534
Confirmed, solution from stack overflow works perfect!
I did run into this Problem when i was running all the latest versions already.
As someone on stackoverflow suggested: rebooting the iPhone did fix this for me.
iOS 15.6 beta:
https://developer.apple.com/documentation/ios-ipados-release-notes/ios-ipados-15_6-release-notes
Known Issues
Xcode 13.4 is unable to prepare iOS 15.6 beta devices for development. (93452791)
Workaround: Use Xcode 13.3.1.
have you updated your Xcode ?, probably came with Xcode SDK so it couldn't support to your IOS device.
I try all of that but it does not work my phone is updated and so is my Xcode but it is still is not perform any other things that I could try
This is what worked for me. I went to this answer, which had a few answers.
The one that worked for me was: restart the iPhone. Which I am a little ashamed I didn't try on my own.
The simplest way is restart your device. That really works for me. It seems that just an unexpected bug or crash.
Thanks kajlsdfh, stack overflow solution worked for me too. I'm very grateful :)
Signed in to confirm that restarting my device DID work. Thanks, and good luck.
On 9/13/22 updated to Xcode 14.0, but iOS 16.0 is not available. Now: "This operation can fail if the version of the OS on the device is incompatible with the installed version of Xcode. You may also need to restart your Mac and device in order to correctly detect compatibility". Am I missing something here? Do we need to wait for iOS 16.0 to develop for iOS 15.7, which is the current highest iOS device version?
This solution worked for me https://stackoverflow.com/questions/71618452/failed-to-prepare-device-for-development-with-xcode-13-2-1-and-ios-15-4-devic/71667372#71667372. I had to download support files for iOS 16.4