【发布时间】:2021-02-09 14:36:38
【问题描述】:
我是学习 react-native 的新手,我想生成一个 ios 版本,但每当我尝试运行 pod install 时,它总是给我这个错误。我无法弄清楚我错在哪里,我尝试了几种选择,但没有奏效。如果有人能告诉我问题出在哪里,那将是一个很大的帮助。
EOF
# Prepare exported header include
EXPORTED_INCLUDE_DIR="exported/glog"
mkdir -p exported/glog
cp -f src/glog/log_severity.h "$EXPORTED_INCLUDE_DIR/"
cp -f src/glog/logging.h "$EXPORTED_INCLUDE_DIR/"
cp -f src/glog/raw_logging.h "$EXPORTED_INCLUDE_DIR/"
cp -f src/glog/stl_logging.h "$EXPORTED_INCLUDE_DIR/"
cp -f src/glog/vlog_is_on.h "$EXPORTED_INCLUDE_DIR/"
checking for a BSD-compatible install... /usr/bin/install -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... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for arm-apple-darwin-gcc... /Library/Developer/CommandLineTools/usr/bin/cc -arch armv7 -isysroot
checking whether the C compiler works... no
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: SDK "iphoneos" cannot be located
xcrun: error: unable to lookup item 'Path' in SDK 'iphoneos'
/Users/shehzad/Library/Caches/CocoaPods/Pods/Release/Flipper-Glog/0.3.6-1dfd6/missing: Unknown `--is-lightweight' option
Try `/Users/shehzad/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 `/Users/shehzad/Library/Caches/CocoaPods/Pods/Release/Flipper-Glog/0.3.6-1dfd6':
configure: error: C compiler cannot create executables
See `config.log' for more details
[!] `xcodeproj` was renamed to `project`. Please update your Podfile accordingly.
[!] `<PBXResourcesBuildPhase UUID=`13B07F8E1A680F5B00A75B9A`>` attempted to initialize an object with an unknown UUID. `DC1D7AC84A2642079DCCD9FF` for attribute: `files`. This can be the result of a merge and the unknown UUID is being discarded.
我的 pod 文件
这是我的ios项目结构
【问题讨论】:
-
好像你改了你的podFile的名字,先和我们分享一下podFile的定义和你打开的xcode项目的照片
-
i.stack.imgur.com/9eyx6.png@anthonywillismuñoz 你可以从她那里查看ios项目结构
-
我的意思是你的 Podfile 的屏幕截图或行,它是内部 ios 文件夹,也是在 xcode 中打开的项目的屏幕截图。
-
i.stack.imgur.com/vTNpG.png 这是我的 pod 文件
-
目前我的mac被占用了我会尽快分享截图
标签: ios xcode react-native build