我正在尝试构建一个iOS应用程序,我在调试模式下遇到错误.
ld: b/bl/blx thumb2 branch out of range (17330692 max is +/-16MB): from xxxx (0x0204CC28) to zzzz (0x030D4010) in 'yyyy' from libMyLib.a(MyObject.o) for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
这仅适用于iOS调试版本.iOS-Simulator在两种模式下都很好.
我遇到了" 这个页面 ".
这表明Apple已知道这个问题(rdar://16186742).但是解决方法对我没什么好处.即
The work around is to rearrange the source files in the project build phases and/or libraries in the Link Binary with Libraries section. With a few re-arrangements this problem should go away.
Run Code Online (Sandbox Code Playgroud)
我花了太多时间重新安排库链接顺序.这解决了不同*.a文件之间的问题,但没有解决它.
这个问题有适当的解决方案吗?
"xcode 5.0.1"已安装.
| 归档时间: |
|
| 查看次数: |
2334 次 |
| 最近记录: |