Xcode 编译 iPhone 应用程序进行调试而不是分发 - 链接错误“文件未找到”
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能已经尝试过一些想法?
您是否尝试在堆栈溢出中搜索此错误?我得到了以下命中...
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?
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