xcode的other linker flag的含义
来源:互联网 发布:如何使用sql server 编辑:程序博客网 时间:2024/06/06 05:45
原文地址:http://blog.csdn.net/shaobojohn/article/details/7953007
今天编译项目的时候发现抛出了一个异常,<NSInvalidArgumentException>+[NSInvocation invocationWithMethodSignature:]: method signature argumentcannot be nil。但是看到项目里面是有这个类的,最后思考了下,由于是使用的runtime的调用,没有在头文件中import,所以link的时候是找不到这个类的,在网上看了下,只需要在other linker flag中添加-Objc就可以,添加之后发现正确了,不过感觉还是需要了解下这个编译选项的含义,于是在网络上查了下,最后找个一个英文的解释。
-all_load Loads all members of static archive libraries.
-ObjC Loads all members of static archive libraries that implement an Objective-C class or category.
-force_load (path_to_archive) Loads all members of the specified static archive library. Note: -all_load forces all members of all archives to be loaded. This option allows you to target a specific archive.
翻译过来就是-all_load就是会加载静态库文件中的所有成员,-ObjC就是会加载静态库文件中实现一个类或者分类的所有成员,-force_load(包的路径)就是会加载指定路径的静态库文件中的所有成员。所以对于使用runtime时候的反射调用的方法应该使用这三个中的一个进行link,以保证所有的类都可以加载到内存中供程序动态调用- xcode的other linker flag的含义
- xcode的other linker flag的含义
- xcode的other linker flag的含义
- xcode的other linker flag的含义
- xcode的other linker flag的含义
- xcode的other linker flag的含义
- Xcode中other linker flag的设置
- xcode的-other Linker flags
- 关于Xcode的Other Linker Flags
- 关于xcode的other linker flags
- 关于Xcode的Other Linker Flags
- 关于Xcode的Other Linker Flags
- 关于Xcode上的Other linker flags
- 关于Xcode的Other Linker Flags
- 关于Xcode的Other Linker Flags
- 关于Xcode的Other Linker Flags
- 关于Xcode的Other Linker Flags
- 关于Xcode上的Other linker flags
- serialVersionUID
- qt编码小结
- 图解如何使用VS2010和Qt导出和使用静态库,动态库
- lua排序table的闭包函数使用
- Ext 4.2 按钮组
- xcode的other linker flag的含义
- 影响子查询展开的情况
- php解析xml
- Uart debug before console ready low level debug
- Effective stl 第一章 第7、8条
- 【整理】adb命令、adb shell与Linux各种命令(busybox)
- 【Python】set与frozenset的区别
- java设计模式(4)---多例模式
- 图片文字识别