Framework加载
来源:互联网 发布:手机变js工具 编辑:程序博客网 时间:2024/06/11 03:25
使用Xcode 5.1.1编译iOS Framework详细教程
http://ju.outofmemory.cn/entry/88823iOS开发之---静态库的编译以及相关问题的处理
http://blog.csdn.net/steve1018/article/details/6902973
xcode 制作静态库.a文件 详解
http://blog.csdn.net/kepoon/article/details/21516977
iOS静态库相关-封装lib
http://blog.csdn.net/zsomsom/article/details/9163635
xcode 4 制作静态库详解
http://www.blogjava.net/writegull/archive/2012/10/09/389260.html
http://blog.csdn.net/pjk1129/article/details/7255163
-ObjC:
This flag causes the linker to load every object file in the library that defines an Objective-C class or category.
While this option will typically result in a larger executable (due to additional object code loaded into the application),
it will allow the successful creation of effective Objective-C static libraries that contain categories on existing classes.
这个flag告诉链接器把库中定义的Objective-C类和Category都加载进来。这样编译之后的app会变大(因为加载了其他的objc代码进来)。
但是如果静态库中有类和category的话只有加入这个flag才行。
-all_load
IMPORTANT: For 64-bit and iPhone OS applications, there is a linker bug that prevents -ObjC from loading objects files from static libraries that contain only categories and no classes.
The workaround is to use the -all_load or -force_load flags. -all_load forces the linker to load all object files from every archive it sees, even those without Objective-C code.
-force_load is available in Xcode 3.2 and later. It allows finer grain control of archive loading. Each -force_load option must be followed by a path to an archive,
and every object file in that archive will be loaded.
这个flag是专门处理-ObjC的一个bug的。用了-ObjC以后,如果类库中只有category没有类的时候这些category还是加载不进来。变通方法就是加入-all_load或者-force-load。-all_laod会强制
链接器把目标文件都加载进来,即使没有objc代码。-force_load在xcode3.2后可用。但是-force_load后面必须跟一个只想静态库的路径。
-force_load
When someone uses "-all_load", every imported library is forced into memory whether its needed or not. A much better technique is "-force_load":
-force_load $(BUILT_PRODUCTS_DIR)/libarc.a
This insures that ONLY your library is loaded, not every library.
0 0
- Framework加载
- 加载framework 1.1环境
- Framework加载资源
- zend framework的初始化加载
- iOS Framework 制作 加载注意事项
- framework bundle多次加载注意
- Entity Framework:即时加载与延迟加载
- Zend Framework 自动加载之一:简介
- Zend Framework 自动加载之五:结论
- zend framework 自动加载默认规则
- 浅谈Entity Framework中的数据加载方式
- app-framework学习--公用加载、刷新
- zhphp framework (五) 框架加载类
- swift4.0 Xcode9 framework加载xib文件
- Spring framework(2):资源访问&资源加载
- Zend Framework 自动加载之四:资源的自动加载
- Entity Framework 4.1 之三 : 贪婪加载和延迟加载
- 提高.NET Compact Framework 1.0应用程序的窗体加载性能
- spring mvc bean validation
- 给 C# 开发者的代码审查清单
- 中断函数和中断处理函数
- 六度分离理论在社会工程学中的应用
- CDH5.0.0使用hue中的oozie编辑器创建一个wordcount的mapreduce job
- Framework加载
- From SQL Injection To 0wnage Using SQLMap
- NESASM教程——第一天——开始NES汇编
- NAT ISP
- AlertDialog.Builder对话框类的用法
- WWDC 2014 Session笔记 - iOS 通知中心扩展制作入门
- Java入门-访问权限
- EL表达式与JSTL标签的使用
- Xcode6中添加pch文件