Xcode 编译 iPhone 应用程序进行调试而不是分发 - 链接错误“文件未找到”

发布于 2024-08-15 09:04:02 字数 298 浏览 3 评论 0原文

Xcode 编译我的 iPhone 应用程序以进行良好的调试,并且该应用程序在我的 iPhone 上运行良好。但是,当我编译分发版时,出现以下链接错误:

/Users/jtesta/Documents/WaterTaxi_prod_v1.1/build/WaterTaxi.app/WaterTaxi
ld: file not found: 
collect2: ld returned 1 exit status

我不清楚未找到哪个文件。看起来几乎无法在应用程序包中找到可执行文件。有什么想法可能导致这种情况吗?

Xcode compiles my iPhone app for Debug fine and the application works fine on my iPhone. But when I compile for Distribution I get the following Linking error:

/Users/jtesta/Documents/WaterTaxi_prod_v1.1/build/WaterTaxi.app/WaterTaxi
ld: file not found: 
collect2: ld returned 1 exit status

It's not clear to me what file is not found. It almost looks like it can't find the executable in the application bundle. Any ideas what could be causing this?

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

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

发布评论

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

评论(1

忆依然 2024-08-22 09:04:02

您可能已经尝试过一些想法?

  • 对所有内容进行彻底重建
  • 确保您在计算机和 iPhone 上设置了正确的配置文件

您是否尝试在堆栈溢出中搜索此错误?我得到了以下命中...

QtCreator构建返回collect2:ld返回退出状态1

这里也有一些关于这个问题的讨论...

http://cboard.cprogramming.com/cplusplus-programming/96529-error-collect2-ld-returned-1-exit-status.html

Some ideas which maybe you already tried?

  • Do a clean rebuild of absolutely everything
  • Make sure you have the proper provision profiles setup on your computer and on the iPhone

Did you try searching stack overflow for this error? I got the following hit...

QtCreator build returns collect2: ld returned exit status 1

There is also some discussion about this issue here...

http://cboard.cprogramming.com/cplusplus-programming/96529-error-collect2-ld-returned-1-exit-status.html

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