Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

"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
Question marked as Best reply

Posted on Mar 28, 2014 6:38 AM

This turned out to be a corrupt project file. I reverted my code back to a stable build and worked through the commits to find the commit that caused the error, that commit had a corrupt project file in it.

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.

"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 ID.