Xcode 12.5 beta 32/12/2024 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 |