javascript - 当我使用 "react-native run-ios"运行 React Native 项目时显示错误

标签 javascript ios react-native

  1. 安装了react-native

  2. 使用“react-native init myproj”创建了一个项目

  3. 之后我尝试使用“react-native run-ios”运行项目

此处失败并出现以下错误:

Print: Entry, ":CFBundleIdentifier", Does Not Exist /Users/blaze/Desktop/prasa/node_modules/promise/lib/done.js:10 throw err; ^

Error: Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/prasa.app/Info.plist Print: Entry, ":CFBundleIdentifier", Does Not Exist

有什么建议吗?

最佳答案

  1. 删除iOS/build目录
  2. 重置 iOS 模拟器中的内容和设置

它对我有用。

关于javascript - 当我使用 "react-native run-ios"运行 React Native 项目时显示错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35619819/

相关文章:

javascript - 在 IE6 中没有 typeof 的情况下,undefined 检查是否会在 JavaScript 中抛出错误?

ios - RestKit 附带的 AFNetworking 1.3 不支持 IPv6

javascript - react native : Subviews of KeyboardAvoidingView have lag/move at different speeds

javascript - React-native:tvOS 如何强制聚焦按钮?

JavaScript 函数返回用户 session 的负数秒数?

javascript - 缩放网页然后单击后退按钮会更改上一页的背景大小

javascript - 带下拉菜单的菜单按钮

iphone - 推送动画期间的 iOS 7 状态栏颜色。

iOS。如何在 UIButton 上绘制复杂的图像?

node.js - 结合 Nodejs + React Native + Axios + CORS