Bas*_*ssi 4 ios cocoapods react-native
我正在尝试将“本机”从“ 0.50.4”升级到“ 0.55”。
当我运行pod install时,出现错误
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for arm-apple-darwin-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... no
checking for arm-apple-darwin-gcc... -arch armv7 -isysroot
checking whether the C compiler works... no
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
/Users/MacBook/Library/Caches/CocoaPods/Pods/Release/glog/0.3.4-1de0b/missing: Unknown `--is-lightweight' option
Try `/Users/MacBook/Library/Caches/CocoaPods/Pods/Release/glog/0.3.4-1de0b/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
configure: error: in `/Users/MacBook/Library/Caches/CocoaPods/Pods/Release/glog/0.3.4-1de0b':
configure: error: C compiler cannot create executables
See `config.log' for more details
[!] Automatically assigning platform `ios` with version `8.0` on target `quanta_react` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
Run Code Online (Sandbox Code Playgroud)
我是react-native的初学者,我无法在iOS项目中安装Pod。先感谢您。
Big*_*n86 10
大多数情况下,当您拥有一个以上的Xcode开发版本时,就会发生这种情况。多数民众赞成在我身上发生了什么。您可以尝试将xcode-select路径重新配置/更改为默认Xcode.app:
首先检查您的Xcode应用程序名称
xcode-select -p
Run Code Online (Sandbox Code Playgroud)
如果不是Xcode.app,则执行以下操作:
sudo xcode-select --switch /Applications/Xcode.app
Run Code Online (Sandbox Code Playgroud)
之后,再次运行pod install
如果已将其设置为Xcode.app,请尝试以下操作:
cd node_modules/react-native/third-party/glog-* ../../scripts/ios-configure-glog.sh
Run Code Online (Sandbox Code Playgroud)
我不需要这样做,因为之前的步骤已经奏效,也许可以帮到您:)
我向蔡斯·霍兰德(Chase Holland)发表评论,以解决问题,因为它解决了我的问题:删除Xcode路径中可能存在的所有空格。
/Applications/Xcode 10.0.app:将导致上面的错误
/Applications/Xcode10.0.app: 将不会
| 归档时间: |
|
| 查看次数: |
1765 次 |
| 最近记录: |