Yes this happens with the latest version of Alamofire (5.4.3) via SwiftPM.
platforms includes .iOS(.v10).
The issue does not get resolved when setting something more recent like .iOS(.v12), .iOS(.v13), .iOS(.v14) or.iOS(.v15).
Errors look like this:
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/armv7-apple-ios.swiftinterface:57:59: 'AnyCancellable' is only available in iOS 13.0 or newer
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/armv7-apple-ios.swiftinterface:822:19: 'Publisher' is only available in iOS 13.0 or newer
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/armv7-apple-ios.swiftinterface:59:19: 'Cancellable' is only available in iOS 13.0 or newer
All of this only happens when archiving.
Thanks for looking into this.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: