[7.0.5] Error: "no known class method" while compiling library
See original GitHub issueError as below /Users/kyokurosagi/ReactNative/tootitoo/node_modules/react-native-fbads/ios/ReactNativeAdsFacebook/EXAdSettingsManager.m:90:17: error: no known class method for selector ‘setMixedAudience:’ [FBAdSettings setMixedAudience:isDirected]; ^~~~~~~~~~~~~~~~ /Users/kyokurosagi/ReactNative/tootitoo/node_modules/react-native-fbads/ios/ReactNativeAdsFacebook/EXAdSettingsManager.m:135:19: error: no known class method for selector ‘setAdvertiserTrackingEnabled:’ [FBAdSettings setAdvertiserTrackingEnabled:enabled]; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/kyokurosagi/ReactNative/tootitoo/node_modules/react-native-fbads/ios/ReactNativeAdsFacebook/EXAdSettingsManager.m:141:17: error: no known class method for selector ‘setMixedAudience:’ [FBAdSettings setMixedAudience:_isChildDirected]; ^~~~~~~~~~~~~~~~ /Users/kyokurosagi/ReactNative/tootitoo/node_modules/react-native-fbads/ios/ReactNativeAdsFacebook/EXAdSettingsManager.m:150:17: error: no known class method for selector ‘setMixedAudience:’ [FBAdSettings setMixedAudience:NO]; ^~~~~~~~~~~~~~~~ 4 errors generated.
Upgrading from 6.3.1 to 7.0.5.
Had run cd ios && pod install
. Is it only me getting this error?
using react 16.13.1 react-native 0.63.3 Deployment Target is version 9.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:17
Top GitHub Comments
report.txt
and my package.json
I will try create new fresh project instead of upgrade from old files and check for the issue again.
as a workaround it may help: https://github.com/callstack/react-native-fbads/issues/308#issuecomment-1329785139