在《Objective-C基础教程》中例程要求选择Xcode中Mac OS X - Command Line Utility - Foundation Tool
但在Xcode3.2.5中Mac OS X中没有Command Line Utility,
左侧只有Application/Framework & Library/Application Plug-in/System Plug-in/Other,选择Application,
右边有Cocoa Application/Cocoa-AppleScript Application/Quartz Composer Application/Command Line Tool,
选择Command Line Tool,查看下拉菜单Type,有Foundation/C/C++ stdc++/Core Data/Core Foundation/Core Services/Foundation选项,
选择Foundation即可
此处Type不能选错,若选择C,则一个Hello World程序也会报几千个错误。
转载于:https://blog.51cto.com/afantihust/472623