Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Xcode 中添加了 OCMock 静态库和一些头文件。
我不确定自从我添加它后发生了什么变化,但该文件现在在项目导航器中出现了两次——一次在顶层,一次在 usr/lib 文件夹下。
如何摆脱第二个(突出显示的)列表?
看起来您usr通过文件夹引用添加了 OCMock 的整个“”文件夹,这很可能是偶然的。
usr
对于解决方案,您有三种选择:
1)
usr从项目中的文件和文件夹列表中删除“ ”文件夹,并include通过文件夹引用重新添加“”文件夹(我假设您想使用文件夹引用,以便您可以获取最新的头文件在那里?)。
include
2)
将所需的头文件直接添加到您的项目中(即不使用文件夹引用)。
3)
或者去掉第一个“ libOCMock.a”库,只依靠文件夹引用来获取“ usr”层次结构下的静态库。
libOCMock.a