Friday, September 14, 2012

Hacking Up an armv7s Library

Matt Galloway (via David Spector):

Well the iPhone 5 has been announced and it just so happens that the architecture it uses is what they’re calling armv7s. This brings in yet another architecture to the mix alongside armv6 and armv7. And I bet you are wondering why you’re getting linker errors when building for armv7s when using external libraries. It’s because those external libraries do not have armv7s versions!

I hadn’t seen Galloway’s blog before; he also has a good post about how objc_retainAutoreleasedReturnValue works.

3 Comments RSS · Twitter

The lower link's busted.

I've got a solution for ya* which doesn't involve pursuing updated dependencies or hacking up a third-party library, buster: Go to the Architectures setting of your app and remove armv7s! I mean, have these guys lost their minds?

*ya being the prototypical app developer who wonders what's going on and what to do.

@Jesper The link is fixed; thanks.

@Pierre Thanks! I had assumed the problem was deeper than Apple forcing armv7s unnecessarily, because why would they do that?

Leave a Comment