When I am trying a React native project on the IOS simulator it works fine. But when try to Archive the project to upload to the App Store, Xcode throws an error saying
fatal error: module map file '/Users/MyMac/Library/Developer/Xcode/DerivedData/<coolapp>-gsdebkxdyslzmjaypmxjdztvchbl/Build/Intermediates.noindex/ArchiveIntermediates/coolapp/BuildProductsPath/Release-iphoneos/FBSDKCoreKit/FBSDKCoreKit.modulemap' not found
When it is clearly there in the project. I have tried all the solutions posted on this GitHub thread, but none of those work. https://github.com/facebook/react-native-fbsdk/issues/780
react-native: 0.63.2
react-native-fbsdk: ^3.0.0
Also tried on fbsdk 2.0.0
and code 11.0+ still the same issue.
Can anyone please help me.
If you're working on windows/unity and then transferring your build to mac/xcode to build and having this problem with facebook sdk try: - Make sure everything is ticked, and in the dropdown select "Add cocoapods to the xcode project (important). by default its set to workspace not project (this was the issue for mine).
- Make sure everything is ticked, and in the dropdown select "Add cocoapods to the xcode project (important). by default its set to workspace not project (this was the issue for mine). - install pod then open the "workspace" that's generated and build from there.
Still this is quite strange, the Facebook GitHub issues are closed but this still need to be fixed manually by changing the dependencies file. At least from Unity, and I'm using the last Facebook sdk 7.18-2.1 launched in February which change log says this problem is fixed. aSayinAzerion likes this.
It might help
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With