如何使用 Xcode 7 将项目添加到 Subversion 并更改用户凭据

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/33035021/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:01:15  来源:igfitidea点击:

How to add a project to subversion using Xcode 7 and change user crendentials

iosxcodesvnrepositoryxcode7

提问by Kitty

Earlier import option was available under repository section in organizer but in Xcode7 it's not so. How to add a project to svn?

早期的导入选项在组织者的存储库部分下可用,但在 Xcode7 中并非如此。如何将项目添加到svn?

My svn repository was setup with different user credentials and now when i try to commit with new user credentials,it asks for older user's password with old username disabled for change. I have also added a new account in xcode preferences, still it is looking for the older username-password. How can i move ahead with new user credentials?

我的 svn 存储库是使用不同的用户凭据设置的,现在当我尝试使用新用户凭据提交时,它会要求旧用户的密码禁用旧用户名进行更改。我还在 xcode 首选项中添加了一个新帐户,它仍在寻找旧的用户名密码。我如何继续使用新用户凭据?

回答by Syed Uzair Ahmed

In order to share Xcode 5project on SVN, you can do it by doing the following:

为了在SVN上共享Xcode 5项目,您可以执行以下操作:

1. Choose Xcode-> Preferences.

1. 选择Xcode->首选项。

2.Choose “Accounts”tab.

2.选择“账户”标签。

3.In the “Accounts”tab, click “+”-> “Add Repository”.

3.“帐户”选项卡中,单击“+”-> “添加存储库”。

4.Enter the SVN Repository information.

4.输入 SVN 存储库信息。

P.S.You may face the following error while trying to add SVN repo to Xcode as follows: xcode cannot verify the identity of the server

PS在尝试将 SVN repo 添加到 Xcode 时,您可能会遇到以下错误:xcode 无法验证服务器的身份

In order to resolve this issue, just click "Show Certificate", unfold the disclosure arrow and set the “Trust” option menu to “Always Trust”.

要解决此问题,只需单击“显示证书”,展开披露箭头并将“信任”选项菜单设置为“始终信任”。

5.After doing these steps, you can choose the local folder ("iOSProjects" for example) in which you want to do svn checkout. You can do this from "Source code" -> "Checkout".

5.完成这些步骤后,您可以选择要在其中执行 svn checkout 的本地文件夹(例如“iOSProjects”)。您可以从“源代码”->“结帐”执行此操作。

6.Finally, you can create (or place) your Xcode project under your local folder "iOSProjects" to add and commit the project files to SVN.

6.最后,您可以在本地文件夹“iOSProjects”下创建(或放置)您的 Xcode 项目,以将项目文件添加并提交到 SVN。

回答by Syed Uzair Ahmed

Go to Terminal.

前往终端。

Right Click on Projectand Show in Finder.

右键单击项目在 Finder 中显示。

then in TerminalWrite cd (drag the folder here).

然后在终端写入cd (将文件夹拖到此处)。

Enter.

进入。

svn import - m "Your App Name" Folder Name SVN Url

svn import - m "Your App Name" 文件夹名称 SVN Url

Enter

进入

Enter Your credentials.

输入您的凭据。

Done.

完毕。