I'm trying to build my iOS React-Native app and I keep getting this issue when attempting to build:
'FBReactNativeSpec/FBReactNativeSpec.h' file not found
Sometimes it doesn't show up, sometimes it does.
react-native-cli: 2.0.1 react-native: 0.76.7
Has anyone encountered and solved this issue before?
I've tried cleaning DerivedData, running npx react-native codegen, re-installing pods, cleaning build project. Almost everything. Seems to be very stubborn.
this could be releated to minimum deployment target of your pods as well. Edit the post install actions in your podfile. Let me know if this works out .
After manually cleaning Derived data and your Project using Cmd+shif+k
, deintegrate the pods in your iOS project using:
pod deintegrate
Edit the post install actions in ypur podfile
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '5.0' # desired swift version
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.0' # desired minimum deployment target
end
end
end
Then try running pod install again and running your project