Re: Confused with "Active SDK" and "Active Architecture"
Re: Confused with "Active SDK" and "Active Architecture"
- Subject: Re: Confused with "Active SDK" and "Active Architecture"
- From: David Duncan <email@hidden>
- Date: Sun, 18 Oct 2009 09:02:59 -0700
On Oct 18, 2009, at 5:11 AM, Jean-François Brouillet wrote: How do I add a framework, say "AudioToolbox", such that both the 386 and arm versions of it will be available when building?
(Assuming you have Xcode 3.2.1) Right-click on your project and select "Add Existing Frameworks". Choose the frameworks you desire from the list. (Earlier than 3.2.1, you must do this from the Target, as it will present Mac OS X frameworks, but as of 3.2.1 it no longer matters). A typical iPhone app is built in two "flavors" (I cannot use the word target, obviously!) one for the simulator, one for the device.
When deciding to add the AudioToolbox to the set of frameworks which is the one I should choose, the Simulator's or the Device's given that I want to build both, and yet am clueless as to which "architecture" I am adding to at the time I do it.
To answer your subject line at least :). "Active SDK" and "Active Architecture" are shortcuts for making similar changes in your project. As you note, you often switch between the simulator and the device when doing iPhone development, so having these available from the popup makes it easier.
On Oct 18, 2009, at 8:39 AM, Jean-François Brouillet wrote: So ... to rephrase the question:
Using Snow Leopard + Xcode 3.2.1, how do I add the AudioToolbox framework to my project such that it builds for both the Simulator and the Device (3.1.2) given that the project is in a perfectly buildable/runnable state if I exclude everything related to audio?
As above, but if you've already added a framework that only "half works" this is usually because Xcode adds an entry for "Framework Search Paths" when you add a framework that is outside of the current list of search paths. Go into your project & target settings and remove any search paths that don't apply (which unless you've previously added some yourself likely means to remove them all).
-- David Duncan Apple DTS Animation and Printing
|
_______________________________________________
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