Re: Xcode 4 Import headers from sub projects
Re: Xcode 4 Import headers from sub projects
- Subject: Re: Xcode 4 Import headers from sub projects
- From: Allen Ding <email@hidden>
- Date: Wed, 23 Mar 2011 00:39:30 +0800
> The project I am trying to migrate contains 3 libraries projects
> and one iPhone application that uses all these libraries.
Assuming you mean static libraries.
>
> I have recreated the libraries projects inside the workspace, I've configured my libraries to share their headers in the build phase.
If you mean you made the headers 'public' in the copy build phase, I am pretty sure this doesn't do what you would expect as being useful for iPhone static libraries (I believe it copies them to "build_directory/usr/include" or something of the sort). Someone will correct me if I am wrong.
> I've added the libraries as needed in the application link binary build phase. they all independently compile perfectly.
> except for the application that uses them, I am told by the compiler that the imported headers are nowhere to be found.
I've found the simplest, though probably not sexiest way for myself is just to drag the related headers from the libraries into the application project that uses them. You could also add the libraries paths to the Xcode header search paths build settings. Frankly though, the simplicity is a big win for me.
- Allen Ding
_______________________________________________
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