Currently Being ModeratedNov 28, 2010 2:31 PM (in response to Chap Harrison)Ok, I may have fixed it. Certainly not claiming this is the right way to fix it, but now it compiles and runs. Here's what I did:
1. Before opening CFLocalServer.xcodeproj for the first time, unStuff build.sitx (this may require getting Stuffit Expander). If you don't do this, Xcode will automatically create its own Build folder which will have an incompatible structure.
2. Open CFLocalServer.xcodeproj
3. Go to *Project > Edit Project Settings > General*
4. Change *Project Format* to *Xcode 3.2-compatible*
5. Set *Base SDK for All Configurations* to *Latest Mac OS X*
6. Set *Project > Set Active Architecture* to i386
7. Set *Project > Set Active Build Configuration* to Development
8. Go to *Project > Edit Project Settings > Build*. Scroll all the way down. Near the bottom is a checkbox labeled *Treat Warnings as Errors*. Uncheck this (the build emits four warnings that your SDK does not support anything prior to OSX 10.4; we don't care).
9. At this point, the main project window's "Overview" dropdown menu, which previously said "Missing Base SDK", should now say "Development | etc." and, by clicking on it, you can set the active target to All and the active executable to Server and the active architecture to i386.
Apple may want to update this -- pretty tough when this is one's intro to Xcode.2.4GHz MacBook Pro, Mac OS X (10.6)
Currently Being ModeratedJan 27, 2011 7:20 PM (in response to Chap Harrison)There is an option to install 10.4 SDK at the install of Xcode that is not checked. I checked it and it installed the SDK that was missing.
Cheers and happy coding.macbookpro, Mac OS X (10.6.6)
Currently Being ModeratedJan 28, 2011 5:42 AM (in response to pcblues)Another option is to double-click on the project file, change the Bask SDK, close the project, and reopen it.MacBook 2007 (white), Mac OS X (10.6.6), + iMac 27" + iPad + MacBook Pro
Currently Being ModeratedJan 29, 2011 12:41 PM (in response to Chap Harrison)Here is a complete link for sample code :
<http://developer.apple.com/library/mac/#samplecode/CFLocalServer/Introduction/I ntro.html>Macbook Pro, Mac OS X (10.6.6)
Currently Being ModeratedSep 21, 2012 8:31 AM (in response to Pierre Albarede)
Thank you! This link is exactly what I needed and couldn't find myself on developer.apple.com.
I'm using Xcode 3.2.6 on OS X 10.6.8 Snow Leopard.*
I'm new to Mac dev and Xcode so I opened up "A Tour of Xcode:Xcode Features Overview" to begin getting to konw Xcode and how to use it and develop in it. The VERY FIRST step is to download the sample code project, ' "CFLocalServer" the ADC Mac OS X Reference Library'... Simple. But No! I hunted and hunted but didn't find any hint of an archive like Apple's "Mac Retired Documents Library" which you've linked to.
NOW, I can begin.