project.xcworkspace文件重要吗? [英] Is the project.xcworkspace file important?

查看:547
本文介绍了project.xcworkspace文件重要吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Shell脚本执行命令行xcodebuild.我的问题是,如果我一次打开和关闭xx.xcodeproj文件,然后使用该命令,它将很好地工作.

I am doing command line xcodebuild using a shell script. My problem is if I open and close the xx.xcodeproj file once and then use that command it works well.

以某种方式,如果我深入了解文件更改,则此project.xcworkspace是唯一已更改的文件.该文件有效吗,我应该将其检入版本控制吗? 这会引起任何问题吗?

Somehow if I get deep into the file changes, this project.xcworkspace is the only file that has changed. Is this file valid and should I check it into version control? Will this cause any issues?

我听说这和.pbxproj同样重要:这是真的吗?

I've heard that it's as important as .pbxproj: is this true?

我找不到任何有效的文档来讨论xcode项目文件中各种文件的角色和职责.请提供有助于我理解的链接.

I couldn't find any valid documentation which talks about the roles and responsibilities of various files in the xcode project files. Please provide links which help me to understand that.

推荐答案

project.xcworkspace是描述工作区或项目的文件目录.尽管这里的一些答案表明这是不必要的,对于源代码控制应该忽略它,但我不同意,但这将高度依赖于您如何使用环境.通常,project.xcworkspace目录的内容包含contents.xcworkspacedata文件,该文件列出了作为项目中顶级实体包含的项目,而xcuserdata目录则包含了每个用户的设置(对于源,应忽略该文件)代码控制)和xcshareddata,这是共享项目的用户共享的数据,并且应受源代码控制.

project.xcworkspace is a directory of files describing the workspace or projects. Although some of the answers here indicate it is unnecessary and should be ignored for source control, I don't agree, but it's going to be highly dependent upon how you use your environment. Generally, the contents of the project.xcworkspace directory contains the contents.xcworkspacedata file, which lists the projects that are included as top-level entities in your project, an xcuserdata directory, which contains each user's settings (should be ignored for source code controL), and xcshareddata, which is data shared by users who share a project, and should be under source control.

在不共享工作空间或使用简单工作空间的环境中,您也可以忽略它们,但是在将相关项目放在同一工作空间并共享该配置的环境中,您可能希望保留这些.

In environments where you don't share workspaces, or where you use simple workspaces, you can ignore these as well, however in environments where you put related projects in the same workspace and share that configuration, you may well want to keep these.

这篇关于project.xcworkspace文件重要吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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