facebookarchive / react-native-fbsdk

A React Native wrapper around the Facebook SDKs for Android and iOS. Provides access to Facebook login, sharing, graph requests, app events etc.
https://developers.facebook.com/docs/react-native
Other
2.99k stars 906 forks source link

Module compiled with Swift 5.2 cannot be imported by the Swift 5.3 compiler #812

Open h2jun opened 4 years ago

h2jun commented 4 years ago

🐛 Bug Report

In xcode 12.1, the following two errors occur. So I lowered the version of xcode and tried to build it, but it turns out that it was compiled with Swift 5.3 as opposed to xcode12.1.

1. Module compiled with Swift 5.2 cannot be imported by the Swift 5.3 compiler: /Users/yangheejun/Library/Developer/Xcode/DerivedData/WillbeApp-hlgmlesugwjnqjhjaagkrurnhtdd/Build/Products/Release-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.swiftmodule/i386-apple-ios-simulator.swiftmodule

2. Module compiled with Swift 5.2 cannot be imported by the Swift 5.3 compiler: /Users/yangheejun/Library/Developer/Xcode/DerivedData/WillbeApp-hlgmlesugwjnqjhjaagkrurnhtdd/Build/Products/Release-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule

image

To Reproduce

Expected Behavior

Build success

Code Example

Environment

System: OS: macOS 10.15.7 CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 1.24 GB / 16.00 GB Shell: 5.8 - /usr/local/bin/zsh Binaries: Node: 14.8.0 - /usr/local/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.7 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 14.1, DriverKit 19.0, macOS 10.15, tvOS 14.0, watchOS 7.0 IDEs: Android Studio: 3.6 AI-192.7142.36.36.6392135 Xcode: 12.1/12A7403 - /usr/bin/xcodebuild npmPackages: react: 16.13.1 => 16.13.1 react-native: 0.61.5 => 0.61.5 npmGlobalPackages: react-native-cli: 2.0.1