Re: Xcode 4.3.3 problem with framework search paths SOLVED
Re: Xcode 4.3.3 problem with framework search paths SOLVED
- Subject: Re: Xcode 4.3.3 problem with framework search paths SOLVED
- From: Bill Cheeseman <email@hidden>
- Date: Sun, 17 Jun 2012 07:40:22 -0400
On Jun 15, 2012, at 9:10 AM, Joar Wingfors wrote: I've heard about this issue from a couple of users of Xcode 4.3.3. Please file a bug report, the change in behavior is not expected. At least not by me.
Joar
On 15 jun 2012, at 05:45, Bill Cheeseman wrote:
Does nobody have an answer?
On Jun 13, 2012, at 8:50 AM, Bill Cheeseman wrote:
My projects stopped building when I upgraded to Xcode 4.3.3. The reported error was that Xcode could not find my #imported <framework/framework.h>, even though Xcode 4.3.2 had no difficulty in this regard.
After fooling around a while, I discovered that I could make it start building again if I added an explicit "/Library/Frameworks" to the Framework Search Paths build setting.
But that is not ideal, because it assumes my framework is finished, installed and unchanging. I would prefer to get the framework headers from ~/Library/Developer/Xcode/DerivedData as before, since I include the frameworks in my workspace so I can build them automatically if I make changes in them during development of the dependent application project. That used to work in 4.3.2, but no longer in 4.3.3. Why not? My Xcode preferences still specify the default derived data location, and I thought that was supposed to override any settings in Framework Search Paths for these purposes.
Or, a more general question, what is the proper setup when a shared framework is in the same workspace with an application project that is dependent on the framework?
It turns out that this is expected behavior, but adding the shared framework to the Framework Search Paths build setting is not the recommended solution. The Xcode 4 User Guide instructs us to explicitly add a framework dependency to the dependent application's Target Dependencies build phase in order to ensure that the framework gets built before the dependent application. See the "Control the Order in Which Xcode Builds Your Products" subsection of the "Fine Tune Your Builds" subsection of the "Build and Run Your App" section.
|
_______________________________________________
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