Xcode工作区源代码管理仅适用于第一个添加的项目 [英] Xcode workspace source control only working for first added project

查看:127
本文介绍了Xcode工作区源代码管理仅适用于第一个添加的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Xcode 4.4和一个初始项目中创建了一个Workspace。所有的作品都很好。使用git进行源代码管理很好。当我添加启用了源代码跟踪功能的新项目(使用项目导航器底部的+按钮)时,这些项目不允许我从Workspace管理源代码管理。然而,这些项目确实让.git目录和命令行git完美地与它们配合。



最初添加到工作空间的第一个项目仍然有源代码运行良好。例如,如果我保存对文件的更改,则会出现'M'图标,显示文件已被修改。源代码管理菜单正常工作。所有随后添加的项目都表现得好像它们不在源代码控制之下一样。



如果我关闭Workspace并单独打开项目,那么源代码控制工作得非常好。 >

也许我误解了在Workspace中处理项目的正确方法。任何帮助将不胜感激。



〜chuck

解决方案

ve和XCode 4.4有相同的问题,我已经解决了它,如下面的步骤列表所示。



1 - 确保将项目工作文件夹存储在存储库中列表(在Organizer - Repositories选项卡中)。



2 - 如果您已将项目显示在工作区下的项目列表中,请将其删除(仅作为参考)
$ b $ 3使用XCode菜单中File语音下的'将文件添加到'YOURWORKSPACE...'并添加.xcodeproj项目文件(使用为任何添加的文件夹创建文件夹引用选项)。

然后,您将设法使用源代码管理菜单并与您的存储库交谈。
...这听起来像是一个bug,因为我每次向工作区添加一个新项目时都必须重复这些步骤。



希望你能解决这个问题!


I created a Workspace in Xcode 4.4 and an initial project. All works perfectly well. Source control with git is fine. When I add new projects with source code tracking enabled to the Workspace (using the + button at the bottom of the project navigator) those projects don't allow me to manage source control from the Workspace. Yet, those projects do get .git directories and command line git works perfectly well with them.

The first project initially added to the workspace continues to have source code working perfectly well. For example if I save changes to a file, the 'M' icon appears showing that the file has been modified. The Source Control menus work. All subsequently added projects behave as if they are not under source control.

If I close the Workspace and open the Projects individually, then source control works perfectly well.

Perhaps I am misunderstanding the correct way to work with Projects within a Workspace. Any help would be appreciated.

~chuck

解决方案

I've had the same problem with XCode 4.4 and I've solved it as shown in the follow steps list.

1 - Be sure to have your project working folder in the repositories list (in the Organizer - Repositories tab).

2 - If you already have the project shown in the list of projects under the workspace, delete it (only as reference)

3 - Use now the 'Add Files to "YOURWORKSPACE"...' under the File voice in the XCode menu and add the .xcodeproj project file (using the "Create folder references for any added folders" option).

Then you'll manage to use the "Source Control" menu and talk with your repository. ...this sounds to me like a bug because I have to repeat these steps every time I add a new project to a workspace.

Hope you can solve this way!

这篇关于Xcode工作区源代码管理仅适用于第一个添加的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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