0

React Native 0.62,操作系统 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

怎么修?

4

1 回答 1

0

不幸的是,无法在 Linux 上运行 Xcode、iOS 模拟器或如您所见的 CocoaPods。CocoaPods 虽然本身是一个 ruby​​ gem,但仍然依赖于 Xcode 命令行工具(例如xcrun,在上面的输出中报告未找到)。

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

于 2020-04-09T15:57:14.610 回答