Support armv6 and armv7 in the same ipa

I have an Xcode project configured as follows:

  • Project format: compatible with Xcode 3.1
  • Architecture: standard (armv6 armv7)
  • Base SDK: latest iOS (currently installed on iOS 4.2)
  • Built-in Active Architecture Only: UNCHECKED
  • Valid Architecures: armv6 armv7

My question is: does the binary (.ipa) result in 2 executable files in it - one for each architecture, or only for some different object files for each architecture, or is it split even finer than it is?

Just curious. Thanks.

+4
source share
2 answers

From what you described, ipa should have a binary file with several architectures with both arm6 and arm7. You can check it with the file command in the terminal. Inside your application package there is an executable file that will have the same name as the application, myApp.app/myApp . Input:

 file myApp.app/myApp 

in the terminal it will print out what it contains for double checking. He must indicate two architectures.

+9
source

It produces two binary files, and then combines them into the so-called "bold binary file". You can play using multiple architectures in the same executable file using the lipo command.

To clarify: you will have two executable files inside the same file. This is logically one executable file (both are your application), but one version is for one architecture and the other version is for another architecture.

+5
source

All Articles