-ObjC链接器标志做什么? [英] What does the -ObjC linker flag do?

查看:175
本文介绍了-ObjC链接器标志做什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

简单的问题。
之前可能已经回答了,但是无法得到确切的答案。

Simple question. Might have been answered before but was unable to get a exact answer.

现在,我有一个应用程序与无链接器标志。但是,没有链接器标志,我在将数据添加到视图时会遇到一个非常不同的行为。

Right now, I have an app that works with and without the linker flag. However, without the linker flag, I get a very different behaviour when adding data to a view.

谢谢你们!

推荐答案


此标志使链接器加载库中定义了Objective-C类或类别的每个对象文件。虽然此选项通常会导致更大的可执行文件(由于将额外的目标代码加载到应用程序中),它将允许成功创建包含现有类的类别的有效的Objective-C静态库。

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.

从此技术问答

这篇关于-ObjC链接器标志做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆