1
如我们所知,编译的静态库文件* .a增加了一个项目,项目应该配置“其他链接器标志”(OTHER_LDFLAGS )添加值“-ObjC”和“-all_load”。iOS的Google静态库如何不需要“其他链接器标志”(OTHER_LDFLAGS)
但正如我所看到的,iOS的Google库不需要它,它只是简单地拖入和使用。
我想念什么?
感谢先进。
对不起,我的英文epxress。
特拉维斯
如我们所知,编译的静态库文件* .a增加了一个项目,项目应该配置“其他链接器标志”(OTHER_LDFLAGS )添加值“-ObjC”和“-all_load”。iOS的Google静态库如何不需要“其他链接器标志”(OTHER_LDFLAGS)
但正如我所看到的,iOS的Google库不需要它,它只是简单地拖入和使用。
我想念什么?
感谢先进。
对不起,我的英文epxress。
特拉维斯
/*
* Add this macro before each category implementation, so we don't have to use
* -all_load or -force_load to load object files from static libraries that only contain
* categories and no classes.
* See http://developer.apple.com/library/mac/#qa/qa2006/qa1490.html for more info.
*/
#define TT_FIX_CATEGORY_BUG(name) @interface TT_FIX_CATEGORY_BUG_##name @end \
@implementation TT_FIX_CATEGORY_BUG_##name @end
从three20的TTCorePreprocessorMacros.h
非常有用,THX了很多复制! – 2011-08-17 05:27:59