"B/bl/blx thumb2 branch out of range"

Whenever I build to a 5th gen iPod Touch running iOS 7.0 and another similar device running 7.1 I get the following linker error and additionally on a iPhone 5 running 7.0. I do not get the linker error when building to the iOS 7.1 simulator. I am having trouble finding what could have cause this error as I have not touched the code in MyClass or myMethod at all recently. Also I am running Xcode v5.1. I would really appreciate some help.



B/bl/blx thumb2 branch out of range (16777216 max is +/-16MB): from -[MyClass myMethod:] (0x000293A0) to _objc_retain.island (0x00E090EC) in '-[MyClass myMethod:]'

iPhone 5, iOS 7.1

Posted on Mar 27, 2014 2:25 PM

Reply
2 replies

Apr 17, 2014 7:04 PM in response to StevieY22

This is a known linker bug (rdar://16186742). The problem is with the armv7 compiler, when it needs to synthesize branch islands to jump further than 16 MB, and the jump happens to be *exactly* 16 MB. 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.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

"B/bl/blx thumb2 branch out of range"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.