运行 react-native run-ios 时出错
Posted
技术标签:
【中文标题】运行 react-native run-ios 时出错【英文标题】:Getting Error Running react-native run-ios 【发布时间】:2016-09-08 07:27:06 【问题描述】:当我初始化一个项目然后运行时,我是 react-native 的新手
react-native run-ios
我收到此错误
** BUILD FAILED **
Installing build/Build/Products/Debug-iphonesimulator/AwesomeProject.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/AwesomeProject.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
节点-v 6.5.0
react-native-cli: 1.0.0
反应原生:0.32.1
xcode 8 测试版 5
【问题讨论】:
【参考方案1】:也许您的版本太新或不是最新的?
我的 run-ios 工作
节点-v v6.0.0
反应原生 -v react-native-cli: 0.2.0
您是否尝试过直接在 xcode 中运行您的项目?可能会给你更多线索。
【讨论】:
当我尝试使用 xcode 构建它时,我在 RCTWebSocket hello/node_modules/react-native/Libraries/WebSocket/RCTSRWebSocket.m:494:3: Ignoring return value of function declaration with warn_unused_result 中遇到两个错误属性/hello/node_modules/react-native/Libraries/WebSocket/RCTSRWebSocket.m:1334:5:忽略使用warn_unused_result属性声明的函数的返回值 你能解决它吗@MuhammadMohsinTariq 即使我有同样的问题,我也不知道如何解决它以上是关于运行 react-native run-ios 时出错的主要内容,如果未能解决你的问题,请参考以下文章
更新 xcode 13 后 react-native run-ios 命令未成功运行
react-native run-ios不运行:FrontBoard不知道应用程序?
运行 react-native run-ios 就成功了。但不启动模拟器
升级mac os和升级xcode后如何运行`npm react-native run-ios`?