There may be a time when you try to run your app in your device and you get the following error:
Could not locate device support files.
This iPhone (Model …) is running iOS 13.4 (11E608c), which may not be supported by this version of Xcode.
This issue usually happened when you are still developing your app using old version of Xcode but your device have already been upgraded to latest iOS version that is not supported by Xcode.
There are multiple ways to solve this issue:
- Upgrade your Xcode to the latest version - While this is the most obvious way to fix the issue, it could be your most hardest too. Depending on the situation, you might have to update all your projects issues before upgrading (Unsupported swift version, Unsupported SDK version, etc). That’s a lot of work
- Keep two versions of Xcode installed - This have been my preferred option whenever there’s a new iOS beta version dropped and I couldn’t wait to upgrade my device (living on the edge baby!). You have to symlink the
DeviceSupport/folder from the beta or latest version to the stable version that you’ve been using.1 However this option might not be feasible if you have a limited disk space on your machine.
- Copying the latest device support files to
DeviceSupportfolder - I just discovered this today and still in awe on how simple it is. I will list the steps down below.
To fix “Could Not Locate Device Support Files” Error Issue with new device support file
- Go to the following Github repo: iGhibli/iOS-DeviceSupport
- Find the zip files that’s matching your device’s iOS version and download it.
Open the following path in Finder:
$~ open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
Copy and paste the zip files that you have downloaded to
Close and restart your Xcode.
That’s it. You should be able to run your app in your device now. Hope you will find this tips useful.
Until next time. ✌️