![]() Sadly, Xcode 12.5 doesn’t properly know how to launch apps on iOS 15 - it will try, but the app will feeze on the launch screen (at least that’s what I experience). With the default setup, a debug app build will automatically try to launch on the selected device after installation. It’s been already widely discussed, so here’s an article I like on the topic: How to Fix Xcode: “Could Not Locate Device Support Files” Error. To add support for iOS 15 to Xcode 12.5, we need to copy device support files for iOS 15 into Xcode 12.Ĭommonly, they are copied from Xcode 13 (from a coworker’s machine or downloaded from a popular shared repo). Thankfully, the same solution works every time.Īn Xcode application bundle contains support files for each iOS version it knows how to work with. Building and installing a debug build to iOS 15 with Xcode 12īeing able to run against the newest iOS version is a problem that we had to previously fix every year. So debugging an app built with an older version of Xcode requires a few tricks. These steps rely on Xcode being able to communicate with the physical device, and the communication interface changes between iOS versions. If you can’t have Xcode 13 installed on your machine for some reason, there are still ways to run and debug on devices with iOS 15.Ī usual run action in Xcode consists of a few independent steps: ![]() This way, it’s not even technically possible to accidentally build on Xcode 13. The #error directive is skipped when the source code is compiled with a Swift compiler of any version lower than 5.5, which corresponds to Xcode 12.5 or older. This piece of code can be placed anywhere in the source. ![]() #error( "This project should not be built on Xcode 13") To avoid accidentally building with Xcode 13, you can add a conditional compilation error for that case: #if compiler(>=5.5) Since you’re building with Xcode 12, but also have Xcode 13 installed, you might accidentally rebuild on Xcode 13 and end up pushing a very different build of the app than originally intended. How to prevent accidental rebuilding with Xcode 13 However this method has not been tested with beta versions of Xcode or iOS. For example, to make Xcode 12 work with a device with iOS 15.1, it’s enough to perform the procedure above using Xcode 13.0. Note: Using Xcode 13.0 or above should be enough to support any iOS 15.x version.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |