0

Building application for iOS Device so need to change the architecture from armv7,armv6 to i386.

How to change it?

or

How to build the application for i386 architecture?

Volo
  • 28,673
  • 12
  • 97
  • 125
kiran
  • 4,285
  • 7
  • 53
  • 98

1 Answers1

0

You can change the architecture in the Build Settings under Architectures (you may also need to modify Valid Architectures too?). Just to note, if you are building for the iOS Device then you need to build for armv6 and armv7 and not i386. You can set different architecture types for each target and also for the project as a whole (under Project).

Architecture

Suhail Patel
  • 13,644
  • 2
  • 44
  • 49
  • what i need to type in that! directly i368 or ? – kiran Jun 20 '12 at 09:10
  • 1
    If you are compiling for the iOS Device then you need to compile for armv6 and armv7 NOT i386. You shouldn't have to change this setting anyway if you just want to build (to distribute or submit), the default Xcode sets up is just fine – Suhail Patel Jun 20 '12 at 09:13
  • okay! when i am importing into new project i do getting this warning! libSignatureLibrary.a, file was built for archive which is not the architecture being linked (i386) – kiran Jun 20 '12 at 09:53
  • 1
    If you are building a Static Library for use in other projects then you need to build a 'fat' library which includes both armv6/armv7 and i386. I had to do this previously and used the following answer: http://stackoverflow.com/a/3647187/846698 – Suhail Patel Jun 20 '12 at 09:58