android - 退出 Expo 后无法运行 React Native 应用程序

标签 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/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
  • native react :0.49.5
  • npm:4.6.1
  • 守望者:4.7.0
  • Node :8.1.3

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

最佳答案

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

react-native init yourAppName

代替

create-react-native-app yourAppName

关于android - 退出 Expo 后无法运行 React Native 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47229004/

相关文章:

android - 删除 ArrayList 上的元素会在 ArrayAdapter 上抛出 IndexOutOfBoundsException

android - 使用 YouTubeStandalonePlayer 纵向显示 YouTube 视频

ios - UIDocumentPickerViewController 未调用 documentPicker 委托(delegate)

node.js - 如何 reshape GraphQL 响应?

c++ - 在 GYP 中检测 MSVC 版本

android - 如何从后台服务更新多个 Android Activity 中的 UI

android - 如何在android中的计时器选择器对话框中禁用过去时间

ios - 如何使用 Phonegap 命令行工具为 iOS 发布 Build?

ios - 在没有数据库的情况下通过wifi传输数据

Node.js Express 通配符(包罗万象)不适用于 App root