0
Xcode 4をインストールしたばかりで問題があります。あなたが再び取得をコンパイルするときにこのコードは、あなたがsourcode.c.objcためにあなたのファイルタイプを切り替えるようにあなたを取得GCCライン上の誤差を与えることを意味している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
、と私は、次のようなコードを持っていますGCCの行はコンパイルされません。これはXcode 3では機能しましたが、Xcode 4では機能しませんでした。
ファイルタイプを設定するためにXcode 3と4の間で何が変更されたのか、誰の意見もありますか?または定義されました_OBJC変更されますか?
ありがとうございます。