我刚刚通过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