Ambiguous expansion of macro weakify和Ambiguous expansion of macro strongify的警告

项目中若同时集成 YYCategories 和 ReactiveCocoa,使用@weakify(self)和@strongify(self);将会报Ambiguous expansion of macro weakify和Ambiguous expansion of macro strongify的警告。

 

Ambiguous expansion of macro weakify和Ambiguous expansion of macro strongify的警告

 

 

由于 YYCategories 和 ReactiveCocoa都定义了weakify和strongify引起的。解决办法如下:

other war -  键入: -Wno-ambiguous-macro 

 

Ambiguous expansion of macro weakify和Ambiguous expansion of macro strongify的警告

 

Ambiguous expansion of macro weakify和Ambiguous expansion of macro strongify的警告

上一篇:linux之Spark集群安装


下一篇:Linux和widow下 Docker开启远程连接访问