React Native错误Pod安装,Debian 10

时间:2020-04-09 14:52:29

标签: ios linux react-native cocoapods debian-buster

React Native 0.62, OS Debian 10 Buster

我正在尝试为React Native项目运行ios模拟器。为此,我在ios文件夹中运行“ pod install”并捕获了错误:

...

./configure --host arm-apple-darwin

...

checking for arm-apple-darwin-gcc...  -arch armv7 -isysroot 
checking whether the C compiler works... no
/usr/bin/bash: line 24: xcrun: command not found
/usr/bin/bash: line 24: xcrun: command not found
/home/user/Library/Caches/CocoaPods/Pods/Release/Flipper-Glog/0.3.6-1dfd6/missing: Unknown `--is-lightweight' option
Try `/home/user/Library/Caches/CocoaPods/Pods/Release/Flipper-Glog/0.3.6-1dfd6/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
configure: error: in `/home/user/Library/Caches/CocoaPods/Pods/Release/Flipper-Glog/0.3.6-1dfd6':
configure: error: C compiler cannot create executables
See `config.log' for more details

如何解决?

1 个答案:

答案 0 :(得分:0)

不幸的是,您无法在Linux上运行Xcode,iOS模拟器或CocoaPods。 CocoaPods虽然本身是红宝石,但仍然依赖Xcode命令行工具(例如,xcrun,据报道在上面的输出中找不到该工具)。

也许有虚拟化选项-不是我自己尝试过的。