iOS 15, accelerate module, armv7, Xcode 13

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.

Answered by DTS Engineer in 687793022

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.

Same here, My problem is cause from module KingFisher

Same here. I filed a Feedback about this issue: FB9178663 and mirrored it on OpenRadar.

I have the same issue on xcode13 beta1 and beta2.

Our project build failed in either debug configuration or release archive.

Last week (with beta1) I tried creating a sample project using Kingfisher. and the sample app builds successfully without this error, kingfisher worked well.

If this error is due to kingfisher then you can try below approach. In order to resolve this issue I tried by changing the deployment target in Kingfisher from 8.0 to 11.0 and now I am able to run in the simulator.

Same problem in beta 3, now it started for Combine framework too.

I am having the same issue as well: "beta 3, now it started for Combine framework too" as posted by Hiren Gujarati above.

Similar issue doing a debug build around Network framework on beta 3

swift-nio-transport-services/Sources/NIOTransportServices/NIOTSBootstraps.swift:15:5: Failed to build module 'Network'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.5 (swiftlang-1300.0.24.14 clang-1300.0.25.10)', while this compiler is 'Apple Swift version 5.5 (swiftlang-1300.0.24.13 clang-1300.0.25.10)'). Please select a toolchain which matches the SDK.

Hi everyone,

Is everyone using SwiftPM in these scenarios? If yes, can you check what the platforms property is set to in the broken package's Package.swift?

Currently it seems like this happens when the platforms includes .iOS(.v11) (or equivalent) and below. Does the issue get resolved when you set it to something more recent?

We are looking into resolving this confusing situation, thanks for all the information!

This is still a problem in b5. Are there any updates on this issue?

This issue is still there in beta 5. Any updates please?

Same with Alamofire and cocoapods in beta 5: /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/i386-apple-ios-simulator.swiftinterface:57:59: 'AnyCancellable' is only available in iOS 13.0 or newer

Do we have any update for this please? Using XCode Beta 5 and issue for AF.

Same experience here with beta 5. Have any updates been made?

failed to build module 'Combine'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.5 (swiftlang-1300.0.29.1 clang-1300.0.28.1)', while this compiler is 'Apple Swift version 5.5 (swiftlang-1300.0.29.102 clang-1300.0.28.1)'). Please select a toolchain which matches the SDK.

Same problem with beta 5 using Alamofire and Starscream lib. Any suggestion or update? This is a big problem

I resolved the issue by changing the Deployment Info in the AlamoFire target of my Pods to iOS 13.0. I just had to do this in one of my Pods' Targets and it resolved the issue for all of the dependencies. I can now build and run on iOS 15.0 beta with Xcode 13 beta 5

iOS 15, accelerate module, armv7, Xcode 13
 
 
Q