Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 few times in a row and I handle it by creating a new scheme, deleting the 'Mac 64 bit' one and then renaming the new scheme to what the original was. I'd rather fix whatever is wrong though. Did I set something up wrong - some preference somewhere?

like image 957
spring Avatar asked Mar 30 '12 20:03

spring


People also ask

Where is my Xcode project scheme?

In Xcode Go to Products>Scheme>Manage Scheme and check share to share. Set absolute path everywhere. here you need to change /path/to/your/project/ with your path and testDemo with your project name. Save this answer.

What is scheme in iOS Xcode?

An Xcode scheme defines a collection of targets to build, a configuration to use when building, and a collection of tests to execute.


1 Answers

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.

Manage Scheme

  • Then I switched to my branch and followed the same steps as before but choosing import instead of export. And voila 🙂

Hope it helps! Cheers

like image 134
Franck Mamboue Avatar answered Oct 04 '22 02:10

Franck Mamboue