弹出 Expo 后无法运行 React Native 应用程序



我运行了npm run eject,之后无法运行我的项目。我收到此错误:

In file included from /Users/patrickbassut/Programming/beebo/.expo-source/ios/ios/Exponent/Versioned/Modules/Internal/EXDevSettings.m:3:
/Users/patrickbassut/Programming/beebo/.expo-source/ios/ios/Exponent/Versioned/Modules/Internal/EXDevSettings.h:3:9: fatal error: 'React/RCTDevSettings.h' file not found
#import <React/RCTDevSettings.h>
        ^
1 error generated.

** BUILD FAILED **

The following build commands failed:
    CompileC /Users/patrickbassut/Programming/beebo/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/ExpoKit.build/Objects-normal/x86_64/EXDevSettings.o /Users/patrickbassut/Programming/beebo/.expo-source/ios/ios/Exponent/Versioned/Modules/Internal/EXDevSettings.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/beebo.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/beebo.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
  • 反应原生:0.49.5
  • NPM:4.6.1
  • 守望者:4.7.0
  • 节点:8.1.3

如果有人遇到类似的问题并设法成功解决,请提供帮助。提前感谢!

它也发生在我身上。弹出世博会后,我遇到了很多问题。我决定使用以下方法再次创建我的项目:

react-native init yourAppName

而不是

创建-反应-本机-应用程序您的应用名称

弹出

后我遇到了类似的问题,但我的问题是"粉笔不见了"。所以我通过运行以下命令解决了它:

  npm install chalk
  npm install easy-async
  npm install indent-string

我从这个线程中得到了解决方案

相关内容

  • 没有找到相关文章

最新更新