0
我剛安裝的Xcode 4,我有一個問題。我有這樣的代碼如下:更改文件類型的工作就像它在Xcode 3
#ifdef __OBJC__
#include <Foundation/NSAutoReleasePool.h>
#include <Foundation/NSPathUtilities.h>
#include <CoreFoundation/CoreFoundation.h>
#else
Get GCC to error here! - Please read comment below
// You must tell Xcode to compile this filename.c as Objective-C"
// Select the file, Command-I, select "sourcecode.c.objc" from the File Type: drop list.
// Also add Foundation.framework as a dependency
#endif
此代碼是爲了讓您打開文件類型sourcode.c.objc,然後當你重新編譯給你的獲取GCC線錯誤的獲取GCC行不會被編譯。這個工作在Xcode 3而不是在Xcode 4
有誰知道的Xcode的3和4之間是什麼改變了設置文件類型有什麼建議?或者是做了定義_OBJC變化?
在此先感謝。