不能与之前的'type-name'声明说明符结合使用 [英] cannot combine with previous 'type-name' declaration specifier

查看:1510
本文介绍了不能与之前的'type-name'声明说明符结合使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的iOS应用程序正在运行,突然间我看到了这个错误:无法与之前的'type-name'声明说明符结合使用。关于什么可能导致此错误的任何想法?

My iOS app was working and all of a sudden I'm seeing this error: "cannot combine with previous 'type-name' declaration specifier". Any ideas on what could be causing this error?

#import "SalesAPIManager.h"

@interface SalesDelegate : NSObject { // error points to this line
    __unsafe_unretained id<SalesAPIManagerDelegate> delegate_;
}


@property (unsafe_unretained, nonatomic) id<SalesAPIManagerDelegate> delegate;


- (id)initWithDelegate:(id<SalesAPIManagerDelegate>)delegate;


@end


推荐答案

同样,我在项目的随机文件中输入了一个拼写错误。这只是在评论之前意外放置的一些纯文本。我建议修理/找到它是一个;就在被标记的语句之前。然后,当我编译时,这会对错误的文本发出警告。

Likewise I had a typo in a random file in the project. It was just some plain text that was accidentally placed before a comment. My suggestion to fix/find it would be to put a ; just before the statement that is flagged. This then drew a warning to the errant text when I compiled.

这篇关于不能与之前的'type-name'声明说明符结合使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆