Re: Xcode and "subprojects"
Re: Xcode and "subprojects"
- Subject: Re: Xcode and "subprojects"
- From: "Torsten Curdt" <email@hidden>
- Date: Sun, 14 Dec 2008 02:48:56 +0100
> After some back and forth I came across a very strange behavior:
>
> The above project dependency failed reproducibly. I then added the
> final framework of 'MyCommon' to 'MyProject' as well. (So it had a
> dependency to both: The full Xcode project and the result of the
> 'MyCommon' build. That built fine. I then removed all dependencies to
> 'MyCommon'. Removed the 'build' directories and even restarted Xcode.
> But just adding the Xcode project of 'MyCommon' to 'MyProject' was
> enough and it just worked.
>
> I am very puzzled about this. I could say I am happy that it works
> now. But I will keep any eye on this.
> Too bad that the project wasn't under source control for the test.
> Well, next time.
OK ... this time I tracked it down...
So to summarize the problem again: I dragged project 'MyCommon' into
'MyProject' and set the project dependency accordingly. On a build
'MyCommon' will be build first if necessary. The 'MyCommon' framework
DOES export the headers. Still the compile failed for 'MyProject' as
the headers of the embedded framework could not be found.
Now adding and removing the framework from the build directory itself
again fixed the problem. This time the sources were in version
controlled and I can see what the made the difference:
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(inherited)",
+ "\"$(SRCROOT)/../Common/build/Debug\"",
+ );
Even removing the framework (but leaving the project) leaves this
framework search path behind ...and from there on it works. Well, I
will probably need to add the path for release as well.
Now the question: why on earth do I have to manually add the search
path like that. If a framework is references as a project - shouldn't
that be added automatically? ...or even added implicitly?
Or what did I miss here?
cheers
--
Torsten
_______________________________________________
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