Any chance of getting rid of the all_load requirement for the iOS framework?
来源:互联网 发布:中国人审美标准知乎 编辑:程序博客网 时间:2024/05/19 23:13
The fix is basically:
/**
* Add this macro to the end of each category addition 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
Then the macro is added to each category.
Hopefully, this info can point you in the right direction.
On Aug 16, 2011, at 5:00 PM, Derek Smith wrote:
> This would mean that we would have to remove all of the ObjC categories from the code-base. This is entirely possible but it will take some time to accomplish. Just thinking off the top of my head, there is probably a way to declare a pre-processor macro that can handle this type of situation. I'll do some trial-and-error and get back to you once I have a patch for your problem.
- Any chance of getting rid of the all_load requirement for the iOS framework?
- Getting rid of the DSL model explorer
- Getting Rid Of Windows Rootkits
- 6 Simple Solutions for Getting Rid of Stress
- I want to get rid of the habit of siesta
- Getting the hang of IOPS
- Meeting with the management team is the best chance to ask for all kinds of resources
- why pooling layer & Getting rid of pooling
- Purpose of the Telecom Project 1029 ------- No deletion of any Doc for the project.
- Purpose of the MacroMobile Project 1029 ------- No deletion of any Doc for the project
- Getting the dimensions of the soft keyboard
- how to get rid of the UITabBarItem padding
- The problem of getting ior by https
- Getting the most out of IDispatch(XYDispDriver)
- Getting The Hang Of IOPS v1.3
- Getting The Hang Of IOPS v1.3
- [torch]Getting the Output of a Layer
- The little thing of getting up early
- 关于内存对齐的理解
- Fedora下Mysql的简单使用
- 0-1背包问题的递归实现与非递归实现
- 111
- WebGL自学教程——WebGL示例:7.2 改进的立方体程序(下):立方图纹理
- Any chance of getting rid of the all_load requirement for the iOS framework?
- [Delphi]用IDSMTP發送郵件(正文和附件)
- c#写的windows服务,定时抓取客户机的屏幕,并发送到指定的邮箱
- TextView属性详解
- shell下编辑并执行shell和perl脚本
- 如何启用物理地址扩展
- 存储过程动态SQL的方式
- 类
- 新浪网技术部笔试题