Hi,
We are using Bitbucket for team managment in xcode.Now from xcode 9 how to use this bitbucket or we compulsory migrate to Github.
Please kindly suggest me how to handle bitbucket in xcode 9.
Thanks
Smily
Hi,
We are using Bitbucket for team managment in xcode.Now from xcode 9 how to use this bitbucket or we compulsory migrate to Github.
Please kindly suggest me how to handle bitbucket in xcode 9.
Thanks
Smily
I suppose you have seen this reddit post ?
They propose to go through gitHub to access to bitbucket.
They say it works, I've not tried myself.
h ttps://www.reddit.com/r/swift/comments/71n9jp/using_source_control_for_bitbucket_in_xcode_9/
If you go to the new Source Control Navigator, right click on the overall project at the top of the navigator. One of the options is to add an existing remote, which works the same as adding a remote used to work in Xcode ≤ 8, and you can add from any SSH or http location.
We recently migrated from GitHub to our own internal Atlassian server for JIRA and Bitbucket, but wanted to continue to use Xcode for git management.
It requires some initial steps to setup but once that is done you will be able to use Xcode as before to make commits, create branches, etc.
1. Using Bitbucket create a blank repo with the project title or import a repo from GitHub.
2. Follow the instructions Bitbucket gives (listed below for connivence).
With Terminal
Configure Git for the First Time
git config --global user.name "username"
git config --global user.email "email@address.com"
Pushing an Untracked Project to Bitbucket
cd existing-project
git init
git add .
git commit -m "Initial commit"
git remote add origin https://<username>@bitbucket.org/<username>/<repoName>.git
git push -u origin master
Pushing a Tracked Project to Bitbucket
cd existing-project
git remote add origin https://<username>@bitbucket.org/<username>/<repoName>.git
git push -u origin --all
git push origin --tags
Xcode Integration
Go to the project directory and open the project or workspace with Xcode. Bitbucket is now used for versioning control!
Friendly Advice
Attempt this procedure with a new imported repo from GitHub or a new project, so as to be comfortable with the steps before taking the risk on an established repo/project.
Conclusion
All our repos have been successfully migrated to Bitbucket, our GitHub account has been closed, and the account details deleted from Xcode preferences. We have not encountered any problems using Xcode versioning control with Bitbucket.
Good luck and happy Bitbucketing!