You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Xcode更新后React Native iOS项目突然编译失败求助

Xcode更新后React Native iOS项目突然编译失败求助

各位好,想请教个棘手的问题:我给Mac做完系统更新后升级了Xcode客户端,结果我的React Native iOS项目现在编译失败了——之前一直都能正常运行,实在搞不懂哪里出问题了。

下面是编译时的错误日志:

xcodebuild: WARNING: Using the first of multiple matching destinations: { platform:iOS Simulator, arch:arm64, id:EE24238B-C75D-40D5-A008-81EDE91884C8, OS:17.5, name:iPhone 15 } { platform:iOS Simulator, arch:x86_64, id:EE24238B-C75D-40D5-A008-81EDE91884C8, OS:17.5, name:iPhone 15 }

** BUILD FAILED **

The following build commands failed:
CompileC /Users/davidbackx/David/personal_projects/pumppal/pumppal/ios/build/Pods.build/Debug-iphonesimulator/Sentry.build/Objects-normal/arm64/SentryThreadMetadataCache.o /Users/davidbackx/David/personal_projects/pumppal/pumppal/ios/Pods/Sentry/Sources/Sentry/SentryThreadMetadataCache.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'Sentry' from project 'Pods')
Building workspace pumppal with scheme pumppal and configuration Debug (2 failures)

我已经尝试过这些办法,但都没解决问题:

  • 清理Xcode衍生数据:rm -rf ~/Library/Developer/Xcode/DerivedData/
  • 执行一系列Pod相关操作:
    • pod deintegrate
    • pod repo update
    • pod install
  • 删除Pods文件夹和Podfile.lock文件
  • 把Sentry升级到了新版本5.32.0

当前我的环境配置:

  • react-native: 0.73.6
  • Xcode: 16.4

真心希望能得到大家的帮助!我怀疑问题不是出在Sentry上,因为这些问题都是升级Xcode之后才突然出现的。

内容来源于stack exchange

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.08 08:15:30