.xcworkspace顯示包內(nèi)容后共有3大塊內(nèi)容末捣,如下圖所示
這里有關(guān)于.xcworkspace的一小段英文解讀
contents.xcworkspacedata
lists the projects that are included as top-level entities in your project
該文件打開(kāi)后的內(nèi)容如下掐松,我個(gè)人理解是Workspace包含的頂級(jí)文件/目錄
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:Elemeiyou.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>
xcshareddata文件夾
which is data shared by users who share a project, and should be under source control.
顧名思義就是共享的數(shù)據(jù),其中有個(gè)文件IDEWorkspaceChecks.plist
比較特殊雄可,經(jīng)過(guò)查閱資料發(fā)現(xiàn)官方有個(gè)解釋
Xcode 9.3 adds a new
IDEWorkspaceChecks.plist
file to a workspace's shared data, to store the state of necessary workspace checks. Committing this file to source control will prevent unnecessary rerunning of those checks for each user opening the workspace. (37293167)
xcuserdata
which contains each user's settings (should be ignored for source code controL)
這個(gè)是保存跟用戶相關(guān)的一些信息曲伊,比如下圖中的這個(gè)文件堕花,保存的是xcode相關(guān)的一些配置
關(guān)于Git
- xcuserdata目錄下的文件不應(yīng)該加入到版本控制(Objective-C語(yǔ)言下的.gitignore自動(dòng)添加該文件夾)
- 其他兩個(gè)文件(夾)最好加入到版本控制