Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work around canImport(Combine) being broken in Xcode 13 #7401

Merged
merged 1 commit into from
Aug 19, 2021

Conversation

tgoyne
Copy link
Member

@tgoyne tgoyne commented Aug 17, 2021

Xcode 13 beta 3 added a swiftinterface file for armv7 Combine which makes canImport(Combine) return true, but the swiftinterface file doesn't actually compile (and no armv7 devices can run OS versions with Combine). Work around this by replacing the canImport(Combine) checks with a define we manually set when building for armv7.

@tgoyne tgoyne self-assigned this Aug 17, 2021
@tgoyne tgoyne requested a review from leemaguire August 17, 2021 19:07
@leemaguire
Copy link
Contributor

There still seems to be issues with Combine and it doesn't seem related to armv7?

❌ /Applications/Xcode-13.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

@tgoyne
Copy link
Member Author

tgoyne commented Aug 18, 2021

Oh, right, i386 is effected too. It's 32-bit iOS specifically that doesn't have Combine, so both device and simulator need to exclude it.

Xcode 13 beta 3 added a swiftinterface file for armv7 Combine which makes
canImport(Combine) return true, but the swiftinterface file doesn't actually
compile (and no armv7 devices can run OS versions with Combine).
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants