Viewing changes and crashing in Xcode 4.3 with SVN repository - xcode

I am a new user to the subversion tool, I was trying to access revision changes from xcode 4.3 in the SVN repository. The path to the SVN was given correctly and also authentication details in the "username" and "password" sections of the top row in "Repositories" section in "Organizer" window. But after I select an application from repository and click "view changes" in the down window of the xcode organizer, the xcode immediately crashes. I have given a correct username and password of SCM to connect. I would be glad to know what could be the possible problems.

Related

Xcode 11 Create Remote Git Repositories but showing "Loading account owners" never ends

I have an existing Xcode project downloaded from Apple Developer web site and it was not under source control. So I first add it to local Git by running "git init". Then I open the project and try to add it to my GitHub repository. After clicking "Create XXXX remote", the dialog shows "Loading account owners..." and it never ends. Anyone knows how to resolve it?
Xcode showing Loading account owners and never end
You must setup your repo account first in Xcode. Go to Xcode->Preferences->Accounts. Click the plus at the bottom of the left pane and select the appropriate account to add (i.e. GitHub). Enter your credentials and they will be verified. Return to the remote repo flow and your account will now display in the Accounts drop-down.

XCode automatically creating repository in Home folder

Every time I open a certain project in Xcode which is under git version control, Xcode adds another repository to the organiser with the name of my user account, located in my user directory.
When trying to commit changes using Xcode, this repository shows up and shows changes from all the Xcode projects I have in my user directory. If I remove the repository from the organiser, I cannot commit any changes or pull from the remote git repository (nothing happens when these menu options are selected). However if I quit Xcode and open the project again, the repository is back.
Would appreciate it if anyone has any idea what's going on here.

Add existing project to BitBucket using Xcode

I keep getting an error when I try to commit my project files using Xcode.
File -> Source Control -> Commit
"The operation could not be performed because no valid working copies were found."
"Please verify that your files are under source control and try again."
This is an existing project that is NOT under source control. How do I get my project files under source control, using Xcode?
EDIT: Answered my own question.
Step 1) Restart Xcode
Step 2) Choose connect to repo
Step 3) Enter repo address
Step 4) Choose existing project folder you wish to place under version control
Step 5) Voila! :)
Since a lot of folks land here when they google "Add existing project to BitBucket using Xcode" and then click through to the link that goes to my blog post on the subject, I thought I would put the information here (in the spirit of SO which discourages link only answers.)
NOTE: These instructions assume you have already made a local git repository for the project. You may have done this at project creation. If not, you will need to create the local git now. See this StackOverflow post for how to do that: https://stackoverflow.com/questions/19495141/add-local-repo-for-existing-xcode-5-project
For Xcode 9 and the new Beta UI for Bitbucket:
Log into your BitBucket Account on their web site.
Click the Create button (plus sign + in the newest version of the web UI). And click Repository.
Give your new repository a name. Additional features for the repo can be configured under the Advanced menu. Make sure the check mark for Private is on if you desire that. Verify that the repository type is Git. If desired, add issue tracking, and a Wiki. Select Objective C or Swift from the language drop down. Then Create Repository.
Next, you will want to add your code. On the top of the Overview page is a field with the HTTPS URL of your project. It will look something like this: https://johndoe#bitbucket.org/xyzteam/xyzapp.git. Highlight and copy that URL text.
Run Xcode and load your project.
From the left pane in Xcode, select the Source Control Navigator. Expand the project node. Right click the Remotes node under your project. Select “Add Existing Remote…”
Give it a remote name, such as Bitbucket. Paste the URL from step 4 into the Location. Click Add. It should now appear as a Remote location in the Source Control navigator.
Once your remote has been added, you should now be able to push to the remote. Select Source Control/Push… It should show your Bitbucket remote as the destination and will show (Create) as this is the first push. Click Push.
If this is the first time you are pushing this project to BitBucket, you will be asked for login credentials. The User Name will be prefilled from the URL, so enter the password. Click Okay and after some seconds, it should complete.
If all goes well, you now have the repositories linked up. Go to the BitBucket site, select your repo and you should see the code.
For Xcode older than version 9 and the old Bitbucket UI:
Log into your BitBucket Account on their web site.
Click the Create button.
Give your new repository a name, a description, and make sure the check mark for Private is on if you desire that. Verify that the repository type is Git. If desired, add issue tracking, and a Wiki. Select Objective C or Swift from the language drop down. Then Create it.
Next, you will want to add your code. I am assuming you have an existing project. On the page, you will select “I have an existing project” link from the Command line section.
You will see instructions for linking your local git repository to the remote. There is no need to follow those instructions. However, you will see an https url listed. It will look something like this: https://johndoe#bitbucket.org/xyzteam/xyzapp.git. Highlight and copy that URL text.
Run Xcode and load your project.
From the main menu, select Source Control. Under the gray “Working Copy” item, you will see a menu with your local git repo name and the currently active branch. Expand this menu and you will see an option to Configure [Your project]…. Select this.
Select the Remotes pane from this screen. At the bottom, click the plus +. Select Add Remote…
Now you need a name and a URL. For the name, typically just use your project name, then paste the URL copied earlier in step 5. Some people have found that they must remove the user name portion of the URL. Per the example, remove “johndoe#”. This may have to do with whether your project is set up as a team project, or an individual project.
Click Add Remote. Click Done.
Once your remote has been added, you should now be able to push to the remote. Select Source Control/Push…. If this is the first time you are pushing this project to BitBucket, you may be asked about keychain access and/or login credentials. Enter the appropriate responses, such as Allow for keychain. If you have already done this before, it will simply use the keychain data without further prompting.
If all goes well, you now have the repositories linked up. Go to the BitBucket site, select your repo and you should see the code.
If you want to see a version of this information with screen shots, see my blog post.
Login your bit bucket account and Create a repository in your account
open terminal run these following command
1- cd /path/to/your/repo
2- git remote add origin <url of your repository >
3- git push -f origin master
it works for me, Thanks.

How can I Inform my Project that it is under SCM control?

I have a problem with XCode 4.0.2 and SVN.
I want to assign a repository to an existing project. Here, there is a tutorial about how to do it with Xcode 3. My problem is with section ' Not Quite Done Yet! on previous link
How can I Inform my Project that it is under SCM control?
It should be covered in the XCode4: Repositories, Snapshots, and Archives
In Xcode 4, you configure SCM repositories in the Organizer (Figure 7-2) instead of a preference pane, as is done in Xcode 3.
If you check a project or workspace out of Subversion or Git using the command line or another tool, you can add it to your Xcode SCM repository support.
To do so, click the plus sign (+) at the bottom of the navigation pane in the repository organizer and choose Add Working Copy.

How to create a new project from a repository in XCode 4 other then the welcome screen

In the past with XCode 4 I have been creating my new projects from existing repositories using the option provided on the XCode 4 welcome screen "Connect to a Repository".
I want to know how to do this from the XCode menus after the welcome screen is no longer visible and for the speed and convenience.
I tried looking under File->source control but didnt see an option for this.
Thanks!
If you want to create a new project (and specify whether a Git repository will be created with it), choose File > New > New Project (or press Cmd-Shift-N). Fill out the form and, when you're prompted for a folder in which to save the new project, check the box at the bottom of the sheet that says "Source Control: Create local git repository for this project" before saving.
If you want to create a Git or SVN repository from an existing project that doesn't have one, you'll have to use the command line or your favorite GUI tool, as Xcode's SCM support is still a bit limited. In Git, you can just type "git init /Path/To/Repo" (or "git init" if you're already at that path). SVN is a few more steps, depending on a few choices - easy enough to look up.

Resources