分支项目时,iOS方案丢失(Xcode 4.2) [英] iOS scheme goes missing when I branch my project (Xcode 4.2)

查看:48
本文介绍了分支项目时,iOS方案丢失(Xcode 4.2)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Xcode 4.2中,当我创建一个新分支并打开它时,Master中存在的iOS方案会丢失.相反,我有一个针对"Mac 64位"的方案.

In Xcode 4.2 when I create a new branch and open it, the iOS scheme which exists in the Master is lost. Instead I have a scheme for 'Mac 64 bit."

这已经连续发生了几次,我通过创建一个新方案,删除"Mac 64位"方案,然后将新方案重命名为原始方案来处理它.我宁愿修复任何错误.我在某些地方设置了错误-在某处有一些偏好吗?

This has happened a few times in a row and I handle it by creating a new scheme, deleting the 'Mac 64 bit' one and then renaming the new scheme to what the original was. I'd rather fix whatever is wrong though. Did I set something up wrong - some preference somewhere?

推荐答案

我知道这是个老问题,但最近似乎也没有一个好问题.因此,我为此添加了解决方案.

I know this is old question but there doesn't seem to be a good question lately either. So, I am adding my solution for this.

问题是因为未将该方案签入其他分支.如果不是这样,该计划将在其他人身上消失.

The issue is because the scheme is not checked into other branch. If they are not, scheme will disappear on others.

如果您想知道为什么未检入,则除非您在 Manage Scheme 中的" Check to Share "框且源代码控制为git,否则scheme是本地的.

If you wonder why this was not checked in, scheme is local unless you 'Check to Share' box in Manage Scheme and source controlled to git.

将其保存在分支中之后,要使此更改在其他分支中可见,您需要将此更改传播到其余工作分支.

After it is saved in a branch, to make this change visible in other branches, you need to propagate this to the rest of working branches.

我使用git命令行执行此操作是因为执行xcode不太可靠,因为它位于.xcodeproj下.

I did this using git command line because doing this xcode isn't so reliable because it is under .xcodeproj.

这篇关于分支项目时,iOS方案丢失(Xcode 4.2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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