Android 弹出Expo后无法运行React本机应用程序

Android 弹出Expo后无法运行React本机应用程序,android,ios,node.js,react-native,npm,Android,Ios,Node.js,React Native,Npm,我运行了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/Versio

我运行了
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
包含在/Users/patrickbassut/Programming/beebo/.expo source/ios/ios/Exponent/Versioned/Modules/Internal/EXDevSettings.m:3中的文件中:
/Users/patrickbasut/Programming/beebo/.expo source/ios/ios/Exponent/Versioned/Modules/Internal/EXDevSettings.h:3:9:致命错误:未找到“React/RCTDevSettings.h”文件
#进口
^
生成1个错误。
**构建失败**
以下生成命令失败:
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/index/Versioned/Modules/Internal/EXDevSettings.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1.0.compiler
(1次失败)
安装build/build/Products/Debug iphonesimulator/beebo.app
处理命令时遇到错误(domain=NSPOSIXErrorDomain,code=22):
未能安装请求的应用程序
无法确定应用程序的包标识符。
确保应用程序的Info.plist包含CbundleIdentifier的值。
打印:条目“:CbundleIdentifier”不存在
命令失败:/usr/libexec/PlistBuddy-c打印:CFBundleIdentifier build/build/Products/Debug iphonesimulator/beebo.app/Info.plist
打印:条目“:CbundleIdentifier”不存在
  • 本机反应:0.49.5
  • npm:4.6.1
  • 看守员:4.7.0
  • 节点:8.1.3

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

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

react native init yourAppName

而不是

创建本地应用程序yourAppName


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

react native init yourAppName

而不是

创建本地应用程序yourAppName


我在弹射后也有类似的问题,但我的问题是“粉笔不见了”。因此,我通过运行以下命令解决了这个问题:

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

我从中得到了解决办法,我在弹射后遇到了类似的问题,但我的问题是“粉笔不见了”。因此,我通过运行以下命令解决了这个问题:

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

我从中得到了解决方案

你是如何运行你的应用程序的?您采取了哪些步骤来获取此错误?您是否尝试过重新安装节点模块、重置watchman和清除npm缓存?是的,我重新安装了npm模块、清除了缓存、重置了watchman、安装了POD…您是否使用
react native run ios
(假设您正在运行ios)运行应用程序?是的。我用react native init和c/p代码重新创建了我的项目。现在它工作正常了。你是如何运行你的应用程序的?您采取了哪些步骤来获取此错误?您是否尝试过重新安装节点模块、重置watchman和清除npm缓存?是的,我重新安装了npm模块、清除了缓存、重置了watchman、安装了POD…您是否使用
react native run ios
(假设您正在运行ios)运行应用程序?是的。我用react native init和c/p代码重新创建了我的项目。现在它工作得很好