• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Confused with "Active SDK" and "Active Architecture"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Confused with "Active SDK" and "Active Architecture"


  • Subject: Re: Confused with "Active SDK" and "Active Architecture"
  • From: Jean-François Brouillet <email@hidden>
  • Date: Sun, 18 Oct 2009 16:39:36 +0100

The mystery deepens ...

I played with the SpeakHere sample code.
- clean all build once for device, test, works
- clean all build once for simulator, test, works

However:
1. the project was referring to iPhoneOS.2.2 as the "Base SDK"
   which is not available on Snow Leopard/Xcode 3.2.1
2. but both builds *did* work and resulted in working code
3. To my surprise, the AudioToolbox version referred to from
   the SpeakHere project is the arm only version (nm to the rescue)
   and does NOT include the 386 version! Yet the code for
   the simulator does compile, and link, and work
4. When I try to add the same AudioToolbox to my own project
   (otherwise derived from a default template), if I chose
   the iPhoneOS SDK version, then the Simulator version does
   NOT build (much less run, obviously!)
5. I have read http://developer.apple.com/iphone/library/documentation/DeveloperTools/Conceptual/cross_development/Introduction/Introduction.html
   but I cannot exactly say that a lightbulb went on :(

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?

Puzzled in London ...
--
JFB

On 18 Oct 2009, at 13:11, Jean-François Brouillet wrote:

Hi.

I thought I had figured it all out with "Targets" and "Products",
but no ...

How do I add a framework, say "AudioToolbox", such that
both the 386 and arm versions of it will be available when
building?

Obviously, the New Project Template does the right thing with
the frameworks it includes at the start, but I'm just confused
about the this whole architecture vs. target vs. SDK thingie.

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.

I tried to do all of:
adding the Simulator's to the 386
adding the Device's to the arm
adding the Simulator's to the arm
adding the Device's to the 386

and only ended-up in total confusion :(

Anyone can point me to that part of the Xcode doc (which
used to be way better, back in the days ...) where those
things are stated black on white, with colored pictures
and 3D animations for the feeble of the mind like me to
grok?

Many Thanks
--
JFB

_______________________________________________ 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
References: 
 >Confused with "Active SDK" and "Active Architecture" (From: Jean-François Brouillet <email@hidden>)

  • Prev by Date: Confused with "Active SDK" and "Active Architecture"
  • Next by Date: Re: Confused with "Active SDK" and "Active Architecture"
  • Previous by thread: Confused with "Active SDK" and "Active Architecture"
  • Next by thread: Re: Confused with "Active SDK" and "Active Architecture"
  • Index(es):
    • Date
    • Thread