项目中若同时集成 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的警告-冯金伟博客园