Re: broken import reference to framework from sub-project: SOLVED
Re: broken import reference to framework from sub-project: SOLVED
- Subject: Re: broken import reference to framework from sub-project: SOLVED
- From: Martin Redington <email@hidden>
- Date: Tue, 20 Oct 2009 12:19:59 +0100
>From http://www.devklog.net/2007/10/07/improving-the-xcode-sub-project-experience-with-scripts-and-wits/
"Despite the sub-project properly added to the master project, and
even though linking phases will properly resolve the path of any
shared library or framework reference from an sub-project, including
framework header files will fail. This comes as a bit of surprise,
because adding a framework as a regular project item, no matter where
it is on disk, will allow framework includes to work for that
particular framework.
The solution to this problem is of course to specify the sub-project’s
build directory in the framework search path. An additional twist is
to use Xcode build setting variables to handle all configurations at
once. One does need to assume certain things about the sub-project’s
location and build settings, but for the common case of having the
sub-project in a sub-directory below the “master” project, my solution
will do the job."
On Tue, Oct 20, 2009 at 3:17 AM, Martin Redington
<email@hidden> wrote:
> I have a project that has a subproject that builds a framework.
>
> In my main project, when I try to
>
> #import <MyFramework/MyFramework.h>
>
> I get the following error: MyFramework/MyFramework.h: No such file or directory
>
> #import "MyFramework/MyFramework.h" fails too.
>
> This is on Xcode 3.1.3 on Leopard.
>
> In the subproject, MyFramework.h is correctly marked as public, and
> can be seen in the Headers node of the framework product, as well as
> on the filesystem.
>
> In the main project, the framework target is a dependency of the main
> target, and the framework product is present both in the "Link binary
> with Libraries" and a "Copy Frameworks" phase.
>
> I have verified that it does get copied into the Frameworks subdir of
> the main target, and that the header is present.
>
> The one oddity is that in Xcode, in the main target, the Framework
> doesn't have a disclosure triangle, so its headers can't be displayed.
> I thought this might be because its a reference to a framework in the
> subproject, but it may be connected.
>
> Can anyone suggest what I might be doing wrong?
>
>
>
>
>
> --
> http://www.mildmanneredindustries.com/
>
--
http://www.mildmanneredindustries.com/
_______________________________________________
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