ios - ld : b/bl/blx thumb2 branch out of range from

标签 ios xcode linker

我正在尝试构建 iOS 应用程序,但在 Debug模式下遇到错误。

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 模拟器在这两种模式下都很好。

我遇到了“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”。

最佳答案

此错误已在 Xcode 5.1.1 中修复。因此,安装最新版本可能是最简单的修复方法。

关于ios - ld : b/bl/blx thumb2 branch out of range from,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23612499/

相关文章:

ios - 从 Xcode 项目构建 Ionic 应用程序

iphone - Xcode iPhone 项目不再在我的 iPhone 上调试

ios - 是否可以在 iPad Split View Controller 中插入标题?

ios - 旋转图像缩小我的图像

当输出重定向到文件时,xcodebuild 会损坏测试结果输出

c++ - LNK2019 关于带有 QGraphicsView 子类的构造函数

c++ - 将我的类(class)移动到 "vc/include/"目录后出现链接错误

ios - 如何根据 UITableView 中的行输入(字母)添加另一个部分 - swift

c# - iOS 运行错误 s Xamarin Live Player 和 Hanselman.Forms

c++ 链接器错误 'relocation R_X86_64_32 against ` .rodata.str1.1' Linking CXX shared library libsrt.so