iOS scheme goes missing when I branch my project (Xcode 4.2)

后端 未结 2 2118
长情又很酷
长情又很酷 2021-02-20 00:39

In Xcode 4.2 when I create a new branch and open it, the iOS scheme which exists in the Master is lost. Instead I have a scheme for \'Mac 64 bit.\"

This has happened a

相关标签:
2条回答
  • I know this is old question but there doesn't seem to be a good question lately either. So, I am adding my solution for this.

    The issue is because the scheme is not checked into other branch. If they are not, scheme will disappear on others.

    If you wonder why this was not checked in, scheme is local unless you 'Check to Share' box in Manage Scheme and source controlled to git.

    After it is saved in a branch, to make this change visible in other branches, you need to propagate this to the rest of working branches.

    I did this using git command line because doing this xcode isn't so reliable because it is under .xcodeproj.

    0 讨论(0)
  • 2021-02-20 01:24

    I ran into the same issue and this is how I fixed it:

    • From my master branch, I exported the schemes I needed - I did by navigating to Product > Scheme > Manage Schemes... on the Xcode menu. I then selected the schemes I wanted to export (i.e. Development and Release in my case). Finally, I chose the Export... option after clicking on the gear icon as shown in the picture below.

    • Then I switched to my branch and followed the same steps as before but choosing import instead of export. And voila
    0 讨论(0)
提交回复
热议问题