react-native-fbads: Build with Facbeook iOS SDK v12 fails with 'FBSDKCoreKit/FBSDKSettings.h' file not found
Bug Report
Before opening
- Did you try the latest release?
- Did you look for existing issues?
Ad Modules
Platforms
iOS
Versions
- Android:
- iOS: 15
- react-native-fbads: 7.0.5
- react-native:0.65.1
Current Behaviour
Until this morning our release builds ran smoothly but re-running the same build that worked this morning fails with the following error:
/Users/user/actions-runner/_work/user-mobile/user-mobile/node_modules/react-native-fbads/ios/ReactNativeAdsFacebook/EXAdSettingsManager.m:10:9: 'FBSDKCoreKit/FBSDKSettings.h' file not found
#import <FBSDKCoreKit/FBSDKSettings.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expected Behaviour The build to run smooth again.
Steps to Reproduce It happens on two different build servers independent of a branch to build.
Thanks so much for any idea what this could cause it all of a sudden.
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 18
Commits related to this issue
- Update ReactNativeAdsFacebook.podspec fixed issue: https://github.com/callstack/react-native-fbads/issues/308 — committed to vedranp/react-native-fbads by vedranp a year ago
- Update EXAdSettingsManager.m fixed issue: https://github.com/callstack/react-native-fbads/issues/308 — committed to vedranp/react-native-fbads by vedranp a year ago
I solved this problem.
try install ‘react-native-fbsdk’
And if you see an error message “The SDK version in the ad request is no longer supported for new apps. Please upgrade to the latest version of the SDK”, edit sdk version in react-native-fbads/android/app/build.gradle
I made a PR for this. you can see at sdk version error fixed
I am reopening this since the issue resurfaces when upgrading to Facebook iOS SDK v12. My current environment is:
My Podfile contains the following line:
Anyone that got v12 to work with
react-native-fbads?@beqramo do we have to use something like patch-package to add these changes?
Hi guys, After spending tons of time I was finally able to build and run the app. here is a patch file that I made:
Has anyone found a solution on this ? I got the same problem