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

React Native ios build fails with "'RNNAppDelegate.h' file not found" - Stack Overflow

programmeradmin0浏览0评论
/..project/ios/Audiri/AppDelegate.h:1:9: fatal error: 'RNNAppDelegate.h' file not found
1 | #import "RNNAppDelegate.h"
  |         ^~~~~~~~~~~~~~~~~~

I am getting this error when I run npm run ios in my react native project.

What I have tried so far

  • rm -rf ./node_modules
  • npm i
  • cd ./ios
  • pod deintegrate
  • rm -rf Pods
  • rm -rf ~/Library/Developer/Xcode/DerivedData
  • pod install

Upgrading React Native Navigation Library to the latest version.

    "react-native-navigation": "^7.44.0",

Verified that the file exists.

ls /Users/praveen/code_skoolbag/skoolbag-react-native/ios/Audiri/AppDelegate.h
/Users/praveen/code_skoolbag/skoolbag-react-native/ios/Audiri/AppDelegate.h
/..project/ios/Audiri/AppDelegate.h:1:9: fatal error: 'RNNAppDelegate.h' file not found
1 | #import "RNNAppDelegate.h"
  |         ^~~~~~~~~~~~~~~~~~

I am getting this error when I run npm run ios in my react native project.

What I have tried so far

  • rm -rf ./node_modules
  • npm i
  • cd ./ios
  • pod deintegrate
  • rm -rf Pods
  • rm -rf ~/Library/Developer/Xcode/DerivedData
  • pod install

Upgrading React Native Navigation Library to the latest version.

    "react-native-navigation": "^7.44.0",

Verified that the file exists.

ls /Users/praveen/code_skoolbag/skoolbag-react-native/ios/Audiri/AppDelegate.h
/Users/praveen/code_skoolbag/skoolbag-react-native/ios/Audiri/AppDelegate.h
Share Improve this question asked Mar 7 at 9:43 EnzioEnzio 88917 silver badges35 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Verified that the file exists

You’re verifying the wrong file. It’s looking for the AppDelegate from React Native Navigation. Did you follow all the iOS steps for installation?

发布评论

评论列表(0)

  1. 暂无评论