[SOLVED] Re: Adding static libraries to an iPhone project
[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