简体   繁体   English

访问.a库文件中的类?

[英]Accessing classes in .a library file?

How do I access any classes in a library when all I have is the .a file? 当我只有.a文件时,如何访问库中的任何类? I've included the -ObjC linker flag and added the .a file to my project. 我已经包含了-ObjC链接器标志,并将.a文件添加到了我的项目中。 Still, none of the classes appear in code hints. 尽管如此,这些类都没有出现在代码提示中。

If you mean Code Sense/autocompletion, IIRC they're based off of included headers. 如果您的意思是代码感知/自动完成,则IIRC取决于所包含的标头。 If you don't have the headers, you won't get the hints. 如果没有标题,则不会得到提示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM