什么是Main.1输出文件中的X code执行? [英] What does Main.1 output file do in XCode?

查看:122
本文介绍了什么是Main.1输出文件中的X code执行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了所谓的堆栈的样本项目,但意识到我需要更多的数据结构,所以我改名的一切 - 该项目,取得2个新的文件夹和放大器;以x code的匹配组,修改为寻找主/ DataStructures- prefix.pch,而不是目标构建路径。但是有一个文件,我不明白 - >早些时候,我已经得到了我的文件夹中Stack.1,所以我只是改名为Main.1,它没有的看起来的将影响构建过程,但我pretty持怀疑态度。这是什么Main.1吗?是像在C链接中间文件/ C ++?

I made a sample project called "Stack", but realized that i needed some more data structures, so i renamed everything - the project, made 2 new folders & their matching groups in XCode, modified the Target Build path to look for "Main/DataStructures-Prefix.pch" instead. But there's one file i don't understand -> earlier, i had gotten a "Stack.1" in my folder, so i just renamed it to "Main.1" and it doesn't seem to be affecting the build process, but i'm pretty skeptical. What does this "Main.1" do? is it the linked intermediate file like in C/C++?

这里有一个画面:

推荐答案

Main.1是创建手册页模板(即一个的在线手册页的),为您程序。您可以验证通过调用

"Main.1" is a template for creating a "man page" (i.e. an on-line manual page) for your program. You can verify that by calling

man ./Main.1

在Main.1所在的目录在命令行上。

on the command line in the directory where "Main.1" is located.

如果您运行

xcodebuild install

在命令行则手册页被复制到上

on the command line then the manual page is copied to the

$DSTROOT/usr/share/man/man1/

目录,其中 DSTROOT 是安装构建产品的位置。该文件没有在构建过程中使用的除外。

directory, where DSTROOT is the "Installation Build Products Location". The file is not used otherwise in the build process.

如果你并不需要一个男人页面,你可以删除从X code项目中的文件。

If you don't need a man page, you can just remove the file from the Xcode project.

这篇关于什么是Main.1输出文件中的X code执行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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