最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

ios - 'FBReactNativeSpecFBReactNativeSpec.h' file not found - Stack Overflow

programmeradmin3浏览0评论

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.

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.

Share Improve this question asked Feb 16 at 21:19 Alejandro IrizarryAlejandro Irizarry 33 bronze badges New contributor Alejandro Irizarry is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
Add a comment  | 

1 Answer 1

Reset to default 1

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

发布评论

评论列表(0)

  1. 暂无评论