• 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
[SOLVED] Re: Adding static libraries to an iPhone project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED] Re: Adding static libraries to an iPhone project


  • Subject: [SOLVED] Re: Adding static libraries to an iPhone project
  • From: Mike Manzano <email@hidden>
  • Date: Thu, 21 May 2009 09:09:08 -0700

That did it. Thank you!

On May 20, 2009, at 10:24 AM, Gwynne Raskind wrote:

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
References: 
 >Adding static libraries to an iPhone project (From: Mike Manzano <email@hidden>)
 >Re: Adding static libraries to an iPhone project (From: Gwynne Raskind <email@hidden>)

  • Prev by Date: Re: -mtune on intel machine
  • Next by Date: Security Testing of iPhone Applications
  • Previous by thread: Re: Adding static libraries to an iPhone project
  • Next by thread: Undefined _read$UNIX2003 symbols in link phase
  • Index(es):
    • Date
    • Thread