头文件不在xcode项目中显示

时间:2023-01-13 20:27:53

I'am a newcomer to cocoa developement and i have not yet got used to.

我是可可开发的新手,我还没有习惯。

When use eclipse for java development, we can see all the added jars source file if we attached the source files.

当使用eclipse进行java开发时,如果我们附加源文件,我们可以看到所有添加的jar源文件。

But in xcode, we add a framework such as "Cocoa.framework",there is only one Cocoa.h file we can see. eg: I clone the 'Sonora' source code from github for study. there is one line

但是在xcode中,我们添加了一个框架,比如“Cocoa.framework”,我们只能看到一个Cocoa.h文件。例如:我从github克隆'Sonora'源代码进行研究。有一条线

#import "SNRFileCopyManager.h"

exist in SNRFileImportOperation.h file

存在于SNRFileImportOperation.h文件中

Both the SNRFileImportOperation.h and SNRFileCopyManager.h can be found in Sonora/Classes directory. But, i can see the SNRFileImportOperation.h file in xcode project only and they get work fine together, Why this non third party header file not display in it's own project?

SNRFileImportOperation.h和SNRFileCopyManager.h都可以在Sonora / Classes目录中找到。但是,我只能在xcode项目中看到SNRFileImportOperation.h文件并且它们可以一起工作,为什么这个非第三方头文件不会显示在它自己的项目中?

I know something about the dependency setting adn header search paths. Any one give me a guidance or some references of the code management|organization? Thanks a lot.

我对依赖项设置和标题搜索路径有所了解。有人给我一个指导或代码管理组织的一些参考?非常感谢。

1 个解决方案

#1


1  

The file SNRFileCopyManager.h is found because it is in one of the include search paths. If you select a header file in Xcode and look at the info panel on the right side you can see that it doesn't actually belong to any target, they are shown more or less regardless. Though, building a framework you can select header files to be included into the framework when building. So, you can just pull in your header files into Xcode.

找到文件SNRFileCopyManager.h是因为它位于其中一个包含搜索路径中。如果您在Xcode中选择一个头文件并查看右侧的信息面板,您可以看到它实际上并不属于任何目标,无论它们或多或少都显示出来。但是,构建框架时,您可以选择在构建时包含在框架中的头文件。因此,您可以将头文件拉入Xcode。

头文件不在xcode项目中显示

#1


1  

The file SNRFileCopyManager.h is found because it is in one of the include search paths. If you select a header file in Xcode and look at the info panel on the right side you can see that it doesn't actually belong to any target, they are shown more or less regardless. Though, building a framework you can select header files to be included into the framework when building. So, you can just pull in your header files into Xcode.

找到文件SNRFileCopyManager.h是因为它位于其中一个包含搜索路径中。如果您在Xcode中选择一个头文件并查看右侧的信息面板,您可以看到它实际上并不属于任何目标,无论它们或多或少都显示出来。但是,构建框架时,您可以选择在构建时包含在框架中的头文件。因此,您可以将头文件拉入Xcode。

头文件不在xcode项目中显示