开发者

Xcode compiles iPhone app for Debug not Distribution - Linking error "file not found"

开发者 https://www.devze.com 2022-12-14 09:26 出处:网络
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:

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/WaterTax开发者_高级运维i_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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号