Optional linking for Swift Combine.framework in Xcode 11
问题 Our application supports iOS 11 and higher. In iOS 13 we use SwiftUI + Combine we wrap import of SwiftUI or Combine framework with correspondent check #if canImport(SwiftUI) or #if canImport(Combine) . If we run our app from Xcode 11 under iOS 12 we have error dyld: Library not loaded: /System/Library/Frameworks/Combine.framework/Combine We fixed same issue for SwiftUI by linking it optionally. But we can't make same for Combine as it can not be even selected for linking 回答1: You can add the