• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Adding static libraries to an iPhone project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding static libraries to an iPhone project


  • Subject: Re: Adding static libraries to an iPhone project
  • From: Gwynne Raskind <email@hidden>
  • Date: Wed, 20 May 2009 13:24:48 -0400

On May 20, 2009, at 1:10 PM, Mike Manzano wrote:
Hi there,

I have two versions of a static library. One is compiled for i386, the other for ARM. I have added both libraries to my project, but every time I switch between the simulator and the actual device, I have to manually modify my target to link against one or the other library. Is there a way to make this automatic?

Easiest way would be to run in Terminal:

$ lipo -create /path/to/static_library_i386.a /path/to/ static_library_arm.a -output /path/to/static_library_fat.a

And then add the fat version to your project. The linker will automatically pick the right architecture out of the fat file.

-- Gwynne, Daughter of the Code
"This whole world is an asylum for the incurable."

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • [SOLVED] Re: Adding static libraries to an iPhone project
      • From: Mike Manzano <email@hidden>
References: 
 >Adding static libraries to an iPhone project (From: Mike Manzano <email@hidden>)

  • Prev by Date: Re: Tabs/spaces preferences
  • Next by Date: Undefined _read$UNIX2003 symbols in link phase
  • Previous by thread: Adding static libraries to an iPhone project
  • Next by thread: [SOLVED] Re: Adding static libraries to an iPhone project
  • Index(es):
    • Date
    • Thread