I am having trouble finding the menu item to switch branch using Xcode 9. The working copies menu seems to have disappeared. Any ideas?
Xcode 9
Xcode 8
It seems that Apple has moved Source Controls feature like change branch
, version history
to separate tab in Navigator area for Xcode 9.x
Below are step to perform branch switch :
- Open the
Navigator area
(if it is hidden) by pressing left pane window present on top right of Xcode or use shortcut cmd + 2
- In
Source control navigator
you can seeBranches
,Tag
present for your project.
Now, if you want to switch branch then select the branch to switch and right click on it.
Select Checkout. This will prompt an alert
Do you want to check out “<branch name>”?
SelectCheckout
.
- Now this will switch your branch to selected one after sometime.
Note: In order to switch between branches you need to commit or discard changes done in project.
- You can even see Log history by selecting branch. Commit history can be viewed based on last 24 hours, last 7 days and last 30 days.
Follow the below link for the clear explanation of each and every functionality like, Commit, pull, push, etc.
https://www.raywenderlich.com/153084/use-git-source-control-xcode-9
来源:https://stackoverflow.com/questions/44396681/switching-branch-on-xcode-9