问题描述
我想与其他团队成员分享我创建的工作区方案.但是,它们都存储在 .xcodeproj > xcuserdata > .xcuserdatad > xcschemes 下.我已经在 SVN 中将 xcuserdata 文件夹设置为忽略,因为我假设该文件夹中的所有数据都是特定于用户的.
I'd like to share Workspace Schemes that I've created with the other team members. However they are all stored under .xcodeproj > xcuserdata > .xcuserdatad > xcschemes. I've set xcuserdata folders to be ignore in SVN as I assumed all data in that folder were user specific.
有没有办法解决这个问题?即我不希望这些方案是特定于用户的.或者我应该检查 xcschemes 文件夹.如果我这样做,其他用户是否能够看到和使用我的方案?
Is there a way around this? i.e I don't want the schemes to be user specific. Or should I check the xcschemes folder in anyway. And if I do that will the other users be able to see and use my schemes?
推荐答案
从 Schemes 控件中选择 Manage Schemes.在您想要共享的任何方案旁边选中共享".这些方案将被移动到一个名为xcshareddata"的文件夹中.
Choose Manage Schemes from the Schemes control. Check "Shared" beside any schemes you'd like to share. The schemes will be moved into a folder called "xcshareddata".
更新:这对于 Xcode 4-8 来说也是一样的.
Update: This works the same for Xcode 4-8.
这篇关于将 Xcode 工作区方案添加到版本控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!