【发布时间】:2014-06-30 00:29:13
【问题描述】:
我正在尝试构建一个 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)
这只发生在 iOS 调试版本中。 iOS-Simulator 在这两种模式下都很好。
我遇到了“This page”。
这表明 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.
我花了太多时间重新安排图书馆链接顺序。这在不同的*.a 文件之间移动了问题,但没有解决它。
这个问题有合适的解决方案吗?
“xcode 5.0.1”已安装。
【问题讨论】: