IQKeyboardManager 编译时期错误

/Users/edz/CodeNew Group/HomeViewController.m:14:9: In file included from /Users/edz/Codee/New Group/HomeViewController.m:14:

引入iqkeyboardmanager时候报错,只要引入就报错

查了一些资料例如

https://github.com/hackiftekhar/IQKeyboardManager/pull/559

所说的,于是我查看了下我的是正确的但是还是每次引入时候就报错

还要这种说法的

https://blog.csdn.net/Mr_Jesson/article/details/72896555

我按着上面的做了还是依然有这个问题

提示

@property(nullable, nonatomic, strong) UIFont *titleFont;    Expected ']' 缺少分号

很奇怪,感觉这个问题不可能数显

按着的报错信息

Expected member name or ';' after declaration specifiers

Missing '[' at start of message send expression

Property requires fields to be named

xcode 给出的修改意见也是不管用的

然后我就开始搜索titleFont

发现自己定义了一个这个名字的宏,所以导致了编译不通过的问题,通过修改自己的那个宏,编译就能够通过了

这是为什么呢?

看来编译时期所有的宏都是进行交叉引用的,然后IQKeyboardManager用到的这个编译时候错误的引用了错误的混乱的地址,所以报错了

猜你喜欢

转载自blog.csdn.net/hccgk/article/details/83533933