Xcode:无法链接应用程序

发布于 2025-01-11 10:43:51 字数 554 浏览 3 评论 0原文

使用 XCode 编译我的应用程序时发生了一个新错误(我认为它发生在链接过程中),这是神秘的错误消息:

ld:找不到文件:/Users/stanislas.heili/Library/Developer/ Xcode/DerivedData/XXXXX-fauperpdaeyhczddatnqzxmedtxd/Build/Intermediates.noindex/XXXXX.build/Debug Live-iphoneos/XXXXX.build/Objects-normal/arm64/XXXXXDistribution.o

此错误中有两件奇怪的事情:

  • 它只发生在我身上(该项目的其他开发人员不会遇到此问题)
  • 我可以成功存档,但无法在

我尝试失败的设备上进行调试:

  • 返回一些提交,我确信它在一周前曾经工作过,
  • 清除 XCode 派生数据
  • ,重置包管理器的缓存
  • ,卸载并重新安装 XCode,
  • 删除再次编码并克隆

您有什么建议吗?

I have a new error happening when compiling my app with XCode (I think it happens in the linking process), here is the cryptic error message :

ld: file not found: /Users/stanislas.heili/Library/Developer/Xcode/DerivedData/XXXXX-fauperpdaeyhczddatnqzxmedtxd/Build/Intermediates.noindex/XXXXX.build/Debug Live-iphoneos/XXXXX.build/Objects-normal/arm64/XXXXXDistribution.o

There are two strange things in this error :

  • It happens only for me (the other developers that work on the project do not face this issue)
  • I can archive with success but can not debug on device

I tried unsuccessfully to :

  • go back a few commits to one where I am sure it used to work a week ago
  • clear XCode derived data
  • reset cache of the package manager
  • uninstall and reinstall XCode
  • delete the code and clone again

Do you have any suggestion ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏日浅笑〃 2025-01-18 10:43:51

转到 Xcode -->产品->方案->编辑方案->检查您正在调试的构建配置(调试或发布)

- 更改该调试配置。

输入图片此处描述

goto Xcode --> product ->scheme -> edit scheme -> check that build Configuration (Debug or Release)

you are debug - change that Debug configuration.

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文