我剛剛通過SVN更新我的工作副本後出現一些錯誤。基金會框架。沒有NSString.h文件
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCharacterSet.h:8:0 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCharacterSet.h:8:32: error: Foundation/NSString.h: No such file or directory
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCharacterSet.h:45:0 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCharacterSet.h:45: error: expected ')' before 'unichar'
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h:10:0 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h:10: error: cannot find interface declaration for 'NSString'
所有的錯誤告訴編譯器就無法找到Foundation框架NSString.h文件,我已經在Xcode /框架/ Foundation.framework /頭打開Foundation框架,並注意到沒有NSString的頭文件那裏。誰能告訴我發生了什麼事?我試圖刪除框架並再次添加,但它未能。我仍然沒有NSString頭文件。
你想從NSString繼承嗎?你應該嘗試NSObject而不是.. 或者你錯過了正確的框架 – stackr 2010-12-21 08:24:58
不,我不是。我只想導入,但是這告訴我NSString.h文件不存在,但在Foundation.h中聲明。 –
pawelini1
2010-12-21 08:51:12