Search code examples
xcodexcode4xcodebuild

Is there a way to include an armv6 lib in an armv7 project?


I have an iPhone project in xcode that needs to be compiled for armv7 architecture. I recently needed to include a library that I only have compiled for armv6.

Is there a way to include an armv6 lib in an armv7 project?

additional notes:

  • The project really has to be compiled in armv7.
  • I can't recompile the armv6 library to armv7 (closed source).

Solution

  • I'm afraid the answer to your question is no. You can include the static library compiled for armv6 architecture in your project, but it will never link correctly when you build for armv7. The only solution seems to be to get the library sources and build it for armv7 yourself, but I see this is not possible in your case. I had a similar problem recently, I asked the library owner to build it in the architecture that I required, and they did. Good luck.