开发者

How does Google Static lib for iOS NOT need "other linker flag" (OTHER_LDFLAGS)

开发者 https://www.devze.com 2023-01-25 18:37 出处:网络
As we know, a compiled static lib *.a adds to a project, the project should config the \"other linker flag\" (OTHER_LDFLAGS) to add value \"-ObjC\" and \"-all_load\".

As we know, a compiled static lib *.a adds to a project, the project should config the "other linker flag" (OTHER_LDFLAGS) to add value "-ObjC" and "-all_load".

But as I see, the Google libs for iOS do NOT need that, it just simply drag in and use.

Do I开发者_开发知识库 miss something?

thanks in advanced.

and sorry for my English epxress.

Travis


/*
 * 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

copied from three20's TTCorePreprocessorMacros.h

0

精彩评论

暂无评论...
验证码 换一张
取 消