I can't tell you whether the reviewers downloaded the sample code, but I don't expect they would have posted a review without trying at least some of the examples.
I will ask the author to review his examples ASAP and make any fixes necessary. Do you remember which settings you needed to change in the projects?
If he uses latest Xcode and KNOWS how to use Xcode 3.2 or Xcode 4, he will find it.
(Remove the frameworks with the wrong path. Add the necessary frameworks to Project. Set the base configuration to latest iOS. Change the settings for device/simulator and debug/release correctly if needed. I had to change the configurations of all the projects. It's pretty annoying, because there are more than a hundred projects.)
Thanks. I just tried a few at random (Adding Persons to Groups, Displaying Hierarchical Data, and Displaying an Image for the Title of the Navigation Bar). Xcode complained about "Missing SDK in target" because I only have SDK 4.3, but they all built fine nonetheless. I didn't find any that had a problem finding a framework.
I'm assuming you installed Xcode into the standard location, /Developer, right? Let me know the name of at least one project that's messed up so I can duplicate your problem on my computer.
I installed Xcode 3.2.6 in default directory(/Developer). I downloaded example code http://examples.oreilly.com/0636920010180/ Download the example code again to start from the scrach.
For just one example, check "Allocating and Initializing Objects" in Chapter 1.
You said you build successfully with the base SDK missing? If you look at the frameworks on the left side 'Groups and Files' pane of Xcode, in which color do the frameworks look? Red? Black? You can't build successfully if they look red.
Right click on any of the frameworks in the Groups and Files pane of Xcode and choose 'Get Info'. Could you please tell me the full path?
How about Xcode 4? You mentioned both Xcode 4 and 3.2, and I'm using Xcode 4.
In Xcode 4, I downloaded it from scratch, extracted the file, saw the "missing base SDK" error, but ran it successfully in the simulator without any changes.
If you'd like, I might be able to do a clean install of the old version on a different machine in /Developer and tell you what I see. But I won't have a chance to do that for a few days.
If I recall correctly, this is a common problem with Xcode 3.x. Even sample code that people obtained from Apple employees seemed to have this problem:
I am using Xcode 3.2.6 on MacBook, Xcode 4.0.2 on iMac.
After I came back home, I checked it. As you said it build successfully. I think Xcode 4.0.2 is smarter than 3.2.6 and automatically correcting the configuration.
You uploaded the new updated sample code just a few hours ago.
Thanks for quick response.
You're welcome; I had asked Vandad to check over the code, and he got back to me with a new set of examples very fast. He also confirmed what you found; Xcode 4 is really good at figuring out what it should do. I'm really glad about that because I've had a lot of trouble opening other peoples' projects and even opening old projects of my own in Xcode 3.x.
I will ask the author to review his examples ASAP and make any fixes necessary. Do you remember which settings you needed to change in the projects?
Thanks,
Brian