我正在使用Xcode 8和git作为源代码控制。我为这个项目做了一个git。我们如何删除未使用的工作副本如下图所示
我想删除" SAM"工作副本,以避免混淆。我们怎么能删除它。任何帮助都非常感激。感谢。
更新:我编辑了xcscmblueprint文件。但似乎未使用的仍然出现。
这是我的xcmblueprint文件的内容(修改后)
{
"DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "1D213AF52C5E818A80BAB36B9C687DEB14CD1671",
"DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : {
},
"DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : {
"1D213AF52C5E818A80BAB36B9C687DEB14CD1671" : 9223372036854775807
},
"DVTSourceControlWorkspaceBlueprintIdentifierKey" : "1A669691-0E1E-4D71-AD4F-5F0808376441",
"DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : {
"1D213AF52C5E818A80BAB36B9C687DEB14CD1671" : "eSAM\/"
},
"DVTSourceControlWorkspaceBlueprintNameKey" : "SAMKiosk",
"DVTSourceControlWorkspaceBlueprintVersion" : 204,
"DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "SAMKiosk.xcodeproj",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/victory1908\/SingPostESam.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "1D213AF52C5E818A80BAB36B9C687DEB14CD1671"
}
]
}
您更新了我的原始xcmblueprint(修改前)
{
"DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "1D213AF52C5E818A80BAB36B9C687DEB14CD1671",
"DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : {
},
"DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : {
"CCEA429BB0CEB6873EA4927D131EA2335FDBC324" : 0,
"1D213AF52C5E818A80BAB36B9C687DEB14CD1671" : 9223372036854775807
},
"DVTSourceControlWorkspaceBlueprintIdentifierKey" : "1A669691-0E1E-4D71-AD4F-5F0808376441",
"DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : {
"CCEA429BB0CEB6873EA4927D131EA2335FDBC324" : "SAM",
"1D213AF52C5E818A80BAB36B9C687DEB14CD1671" : "eSAM\/"
},
"DVTSourceControlWorkspaceBlueprintNameKey" : "SAMKiosk",
"DVTSourceControlWorkspaceBlueprintVersion" : 204,
"DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "SAMKiosk.xcodeproj",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/victory1908\/SingPostESam.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "1D213AF52C5E818A80BAB36B9C687DEB14CD1671"
},
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/ZNO-INTL\/SAM.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "CCEA429BB0CEB6873EA4927D131EA2335FDBC324"
}
]
}
答案 0 :(得分:1)
请参阅此链接:Xcode delete working copies of source control
您必须先为方案选择共享,否则您将找不到.xcshareddata文件。
请尝试按如下方式修改文件,然后重新启动。
{
"DVTSourceControlWorkspaceBlueprintPrimaryRemoteRepositoryKey" : "1D213AF52C5E818A80BAB36B9C687DEB14CD1671",
"DVTSourceControlWorkspaceBlueprintWorkingCopyRepositoryLocationsKey" : {
},
"DVTSourceControlWorkspaceBlueprintWorkingCopyStatesKey" : {
"1D213AF52C5E818A80BAB36B9C687DEB14CD1671" : 9223372036854775807
},
"DVTSourceControlWorkspaceBlueprintIdentifierKey" : "1A669691-0E1E-4D71-AD4F-5F0808376441",
"DVTSourceControlWorkspaceBlueprintWorkingCopyPathsKey" : {
"1D213AF52C5E818A80BAB36B9C687DEB14CD1671" : "eSAM\/"
},
"DVTSourceControlWorkspaceBlueprintNameKey" : "SAMKiosk",
"DVTSourceControlWorkspaceBlueprintVersion" : 204,
"DVTSourceControlWorkspaceBlueprintRelativePathToProjectKey" : "SAMKiosk.xcodeproj",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoriesKey" : [
{
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryURLKey" : "https:\/\/github.com\/victory1908\/SingPostESam.git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositorySystemKey" : "com.apple.dt.Xcode.sourcecontrol.Git",
"DVTSourceControlWorkspaceBlueprintRemoteRepositoryIdentifierKey" : "1D213AF52C5E818A80BAB36B9C687DEB14CD1671"
}
]
}