我正在使用以前的应用,但在UIResponder.h中出现错误

问题描述 投票:0回答:3

[我正在使用以前开发人员的应用程序,但是当我对其进行编译时,ig在UIResponder.h和UIEvent.h上显示5个错误

错误1:

文件/开发人员/平台/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h:38:0 /Developer/Platforms/iPhoneOS.platform/ Developer / SDKs / iPhoneOS3.2.sdk / System / Library / Frameworks / UIKit.framework / Headers / UIEvent.h:38:错误:在“;”之前应有“:”令牌

error2:

/ Developer / Platforms / iPhoneOS.platform / Developer / SDKs / iPhoneOS3.2.sdk / System / Library / Frameworks / UIKit.framework / Headers / UIResponder.h:15:0 /Developer/Platforms/iPhoneOS.platform/Developer /SDKs/iPhoneOS3.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:15:错误:在“ UIResponder”之前出现预期的“)”

错误3:

/ Developer / Platforms / iPhoneOS.platform / Developer / SDKs / iPhoneOS3.2.sdk / System / Library / Frameworks / UIKit.framework / Headers / UIResponder.h:17:0 /Developer/Platforms/iPhoneOS.platform/Developer /SDKs/iPhoneOS3.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:17:错误:预期在'-'令牌之前为'{'

error4:

/ Developer / Platforms / iPhoneOS.platform / Developer / SDKs / iPhoneOS3.2.sdk / System / Library / Frameworks / UIKit.framework / Headers / UIResponder.h:42:0 /Developer/Platforms/iPhoneOS.platform/Developer /SDKs/iPhoneOS3.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:42:警告:“ @ end”必须出现在@implementation上下文中

error5:

/ Developer / Platforms / iPhoneOS.platform / Developer / SDKs / iPhoneOS3.2.sdk / System / Library / Frameworks / UIKit.framework / Headers / UIResponder.h:58:0 /Developer/Platforms/iPhoneOS.platform/Developer /SDKs/iPhoneOS3.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIResponder.h:58:错误:找不到“ UIResponder”的接口声明

我正在使用以前的开发人员的应用程序,但是当我对其进行编译时,ig在UIResponder.h和UIEvent.h中显示5条错误1:文件/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2。 sdk / ...

cocoa-touch uiresponder
3个回答
1
投票

一旦检查您要安装应用程序的iPhone OS版本。一旦检查了目标,并根据需要更改了基础sdk和部署sdk。


1
投票

尝试从库中删除所有链接的框架和链接。


0
投票

删除应用程序中使用的所有框架。重新添加所有框架,并对应用程序进行干净的构建。这可能会有所帮助。

© www.soinside.com 2019 - 2024. All rights reserved.