How to fix error "Could not locate device support files"

That's easy. Those files are contained in Xcode itself. Thus, all you have to do to use devices with a newer iOS version - create junction folder (hard link) of those support files from new Xcode (in our case - the beta 11.2) to older Xcode (11.1).

And yes, before that you have to download beta Xcode 11.2.

Otherwise, you also can download only support files from the Internet, if someone already shared them and just toss 'em to Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

P.S. to create junction folder use this command in terminal:

ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.2 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport

It allows you to not to duplicate the same files across your Mac

P.S. Be aware! You have to launch newer Xcode (Beta) you downloaded at least one time to install updated Xcode Tools before you can use symlinks (hard links, junction folder) to Device Support files in older Xcode, otherwise you'll get an error and will not be able to build your app.


I've been reading about hacks to get it to work on the current version of Xcode. Honestly not interested in going down that path. Bottom line, Apple released iOS/iPadOS 13.2 but did not release Xcode 11.2 (still in beta). Gotta go to developer.apple.com and download the latest beta of Xcode 11.2 to run apps on both iOS and iPadOS 13.2 devices. Hopefully they release Xcode 11.2 soon. The last beta was from Oct 11.

Tags:

Ios

Xcode