[英]react-native run-ios TypeError: invalid data
I'm trying to run react-native on my machine. 我正在尝试在计算机上运行react-native。 I'm using elementaryOS which is based on Ubuntu 14.04. 我正在使用基于Ubuntu 14.04的elementaryOS。 I create base app with 我用创建基本应用程序
react-native init hello_world
then I try to run this as ios app: 然后尝试将其作为ios应用程序运行:
react-native run-ios
this returns me following error: 这将返回以下错误:
mateusz@mateusz-L702X:~/hello_world $ react-native run-ios
Found Xcode project hello_world.xcodeproj
/home/mateusz/hello_world/node_modules/promise/lib/done.js:10
throw err;
^
TypeError: invalid data
at WriteStream.Socket.write (net.js:625:11)
at Object.execFileSync (child_process.js:482:20)
at _runIOS (runIOS.js:62:19)
at runIOS.js:24:5
at tryCallTwo (/home/mateusz/hello_world/node_modules/promise/lib/core.js:45:5)
at doResolve (/home/mateusz/hello_world/node_modules/promise/lib/core.js:200:13)
at new Promise (/home/mateusz/hello_world/node_modules/promise/lib/core.js:66:3)
at Array.runIOS (runIOS.js:23:10)
at Object.run (/home/mateusz/hello_world/node_modules/react-native/local-cli/cli.js:87:13)
at Object.<anonymous> (/usr/lib/node_modules/react-native-cli/index.js:88:7)
How can I fix that? 我该如何解决?
You can build react-native iOS app in Mac only. 您只能在Mac中构建本机iOS应用程序。 Using Linux you will not be able to build iOS. 使用Linux,您将无法构建iOS。 Mostly error is related to that. 大多数情况下,错误与之相关。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.