English 中文(简体)
Xcode: 将工作空间设置增加到源控制
原标题:Xcode: Adding WorkspaceSettings.xcsettings to source control

在 X code 中, 文件 & gt; 工作空间设置中的变化设置... 被分别存储为每个 X code 用户 。 我希望所有用户的工作空间设置都设置相同 。 我的目标是将构建的目标复制到同一个相对目录中 。

默认的工作空间设置存储于 :

[工作空间名称].xxworkspace/xcuserdata/[用户名称].xcuserd data

我希望所有用户都能分享这个能力, 这样我就可以把它添加到版本控制中。

问题回答

最后,我们写了一个小的bash 脚本, 执行了四个默认写入命令, 以设置正确的设置 。

scriptPath="$(dirname "$0")"
cd "$scriptPath"
fullPath=$(pwd)
settingsFile="$fullPath"/<project>.xcworkspace/xcuserdata/$USER.xcuserdatad/WorkspaceSettings.xcsettings

cp -f "$settingsFile" "$settingsFile.plist"

defaults write "$settingsFile" BuildLocationStyle CustomLocation
defaults write "$settingsFile" CustomBuildLocationType RelativeToWorkspace
defaults write "$settingsFile" CustomBuildProductsPath "Build/Products"
defaults write "$settingsFile" CustomBuildIntermediatesPath "Build/Intermediates"

cp -f "$settingsFile.plist" "$settingsFile"




相关问题
Tracking Versions, Builds, Revisions, with TortiseSVN

I am the sole developer on a project and have been using tortoiseSVN for quite a while. Now Id like to start getting version information working correctly in the project I.E. show Major Version, Minor ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

How to handle different csproj [closed]

I am working in a team of five. We are working on a C# application with five csprojects. The problem is that for each csproject, each of my colleagues has their own ideas on how to reference a DLL; ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

How to search for file in subversion server?

Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...

热门标签