javascript - react-native run-ios TypeError : invalid data
<p><p>我正在尝试在我的机器上运行 react-native。我正在使用基于 Ubuntu 14.04 的elementaryOS。我使用 </p> 创建基础应用程序
<pre><code>react-native init hello_world
</code></pre>
<p>然后我尝试将其作为 ios 应用程序运行:</p>
<pre><code>react-native run-ios
</code></pre>
<p>这会返回以下错误:</p>
<pre><code>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)
</code></pre>
<p>我该如何解决这个问题?</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>您只能在 Mac 中构建 react-native iOS 应用。使用 Linux,您将无法构建 iOS。大多数错误与此有关。 </p></p>
<p style="font-size: 20px;">关于javascript - react-native run-ios TypeError : invalid data,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/37399726/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/37399726/
</a>
</p>
页:
[1]