xcode的other linker flag的含义
来源:互联网 发布:aris 7.1 软件下载 编辑:程序博客网 时间:2024/06/05 14:23
今天编译项目的时候发现抛出了一个异常,<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
- Content Provide详解
- Ubuntu 12.04 and my new laptop
- 开源DBCP、C3P0、Proxool 、 BoneCP连接池的比较
- 压缩与解压1---字符串的压缩与解压
- js判断浏览器类型和获取父窗体的值
- xcode的other linker flag的含义
- 快速排序算法代码实现
- iCloud上传备份和下载的Demo
- 杭电4143
- 【问题解决】在C#中使用C++编写的类 使用托管c++(managed c++)
- 《Android内核剖析》读书笔记 第3章 源码下载及开发环境配置
- android 设置APN
- varnish使用汇总
- iOS的编码格式