Re: Attach library (.a) in Xcode
Re: Attach library (.a) in Xcode
- Subject: Re: Attach library (.a) in Xcode
- From: Sebastian Nowicki <email@hidden>
- Date: Thu, 3 Jul 2008 20:16:59 +0800
On 26/06/2008, at 11:58 PM, Jean-Daniel Dupas wrote:
An new usefull feature of Xcode 3.0 is "Composite SDKs":
“You can now specify multiple SDKs; for example, a system SDK, a
QuickTime SDK, and the SDK for a third-party library or framework.
To do this, set the Base SDK Path build setting to a system SDK and
set the Additional SDKs build setting to the list of additional SDKs
to composite. At build time Xcode will create a composite SDK and
cache it in a common location; all projects that use that
combination will share the one composite SDKs. This allows you, for
example, to use libraries provided by third parties when building
against a system SDK.”
I did a folder like this: MySDK.sdk/usr/include and MySDK.sdk/usr/
lib wich contains custom static libraries and headers I do not want
to install on the OS. Then I add the MySDK folder to the list of
additional SDK, and I can use my custom libraries without having to
adjust header search path and library search path for each target.
I'm trying to make a framework that is basically an ObjC wrapper
around a C library. To link the framework against the C library I made
an SDK, and it (seemingly) links fine. I'm trying to use this
framework in an application, but when compiling I get errors about
missing header files - the header files of the C library, being
included from my wrapper. How do I include the header files and
binaries required in the framework? Do I put them under Resources or
some custom directory and use a Copy Files build phase?
Also I'm anticipating the linker failing when trying to link against
the framework. Is there anything special I need to do to get it to
link properly? I put the framework under Frameworks/ in my application
project, and dragged the framework into "Linked Frameworks" under the
binary target. I didn't change any deployment settings, it's all set
to Xcode's "Cocoa Framework" project defaults (apart from adding the
"Addition SDKs" path).Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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