Hi Team,
Attempting to build our app with Xcode 13 / iOS 15, and getting a fail during archive, appearing to come from within the accelerate module.
The two errors are:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/usr/lib/swift/Accelerate.swiftmodule/armv7-apple-ios.swiftinterface:591:6: error: enum cases with associated values cannot be marked potentially unavailable with '@available'
@available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
^
in a number of places, and the following one, once:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/usr/lib/swift/Accelerate.swiftmodule/armv7-apple-ios.swiftinterface:1:1: error: failed to build module 'Accelerate'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.5 (swiftlang-1300.0.17.216 clang-1300.0.18.1)', while this compiler is 'Apple Swift version 5.5 (swiftlang-1300.0.19.104 clang-1300.0.18.4)'). Please select a toolchain which matches the SDK.
// swift-interface-format-version: 1.0
^
This is Version 13.0 beta (13A5154h), doing a release build archive (dev build/run succeeds if that helps).
Any insights into whats going on would be great?
Cheers.
This thread contains several overlapping issues, some of which are resolved in the Xcode 13 RC, and others which are still present in the Xcode 13 RC. As a result of the overlapping issues, there are multiple error messages in this thread.
Generally speaking for the Xcode 13 RC, there are known issues specific to apps using libraries with a deployment target that still supports 32-bit iOS versions (iOS 10 or before), even if the app target only supports 64-bit iOS versions (iOS 11 and newer). To workaround this build error, move the library deployment target up to at least iOS 11.
These known issues and workarounds are also noted in the Xcode 13 Release Notes, under the Swift section.