reactnativecn / react-native-website

React Native 中文网
https://reactnative.cn
MIT License
219 stars 328 forks source link

react native yarn iOS 报错 ......com.apple.compilers.llvm.clang.1_0.compiler #786

Closed FTW-001 closed 9 months ago

FTW-001 commented 9 months ago

请按以下格式提供问题的相关信息。

Mac 创建 react native -iOS项目 执行yarn ios时程序报错

BUILD FAILED The following build commands failed: CompileC /Users/apple/Library/Developer/Xcode/DerivedData/rntest01-bjtjdksylmxlnjdzttsdrsdpdtlr/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Yoga.build/Objects-normal/x86_64/event.o /Users/apple/rntest01/node_modules/react-native/ReactCommon/yoga/yoga/event/event.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler CompileC /Users/apple/Library/Developer/Xcode/DerivedData/rntest01-bjtjdksylmxlnjdzttsdrsdpdtlr/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Yoga.build/Objects-normal/x86_64/Yoga.o /Users/apple/rntest01/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (2 failures) error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

请描述完整的环境/版本信息

System: OS: macOS 10.15.7 CPU: (4) x64 Intel(R) Core(TM) i5-4570R CPU @ 2.70GHz Memory: 69.57 MB / 8.00 GB Shell: version: 5.7.1 path: /bin/zsh Binaries: Node: version: 20.10.0 path: /usr/local/bin/node Yarn: version: 1.22.21 path: /usr/local/bin/yarn npm: version: 10.2.3 path: /usr/local/bin/npm Watchman: Not Found Managers: CocoaPods: version: 1.14.3 path: /usr/local/bin/pod SDKs: iOS SDK: Platforms:

sunnylqm commented 9 months ago

image

FTW-001 commented 9 months ago

老师,您好, 后来我进到ios文件夹下,删除了pods 重新pod install 后,返回上一级 执行yarn ios xcode中提示错误如下: WechatIMG8 WechatIMG6

sunnylqm commented 9 months ago

xcode需要升级到14.1以上

FTW-001 commented 9 months ago

好的 谢谢