静态库中的类别/接口不自动完成? [英] Categories/Interfaces From Static Libs Not Autocompleting?

查看:119
本文介绍了静态库中的类别/接口不自动完成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

感谢这篇文章和现在内置的静态库模板,我可以将我项目的一些部分放在其他地方。一切都没有警告编译,运行正常。但是,我曾经在import语句中获取类别的自动完成功能。这已不再发生。如何在静态库中获取类别的自动完成功能?

Thanks to this post and the now built-in static library template, I am able to put some of the pieces of my project elsewhere. Everything compiles with no warnings and runs fine. However, I used to get autocomplete for the categories in my import statement. This is no longer happening. How can I get autocomplete for categories in a static library?

推荐答案

问题是XCode不知道在哪里查找你的头文件。

The problem is that XCode doesn't know where to look for your header files.

要解决此问题,请执行以下操作 - 在应用目标的用户标题搜索路径中,指向您的类别标题的位置。这告诉XCode在哪里寻找它,自动完成应该工作。如果有多个目标,您可以为每个目标或项目设置修复它。

To fix this, do the following - In the "User Header Search Paths" of your app's target, point to the location of your category header. That tells XCode where to look for it, and autocomplete should work. In case of multiple targets, you could fix it for each target or at the project's settings.

这篇关于静态库中的类别/接口不自动完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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