In Xcode 4, when I'm working when an iOS project, the Scheme drop down menu in Xcode's toolbar normally displays a scheme for iPhone X.X Simulator, iPad X.X Simulator and iOS Device.
When changing branches after having done something that affects the *.xcodeproj/project.pbxproj file, all my schemes disappear from the scheme drop down. If I close the project and reopen it, they come back. This is extremely annoying.
Here's what I'm doing:
At this point, my schemes are screwed and I have to close the project and reopen it to get them back.
Here's what they look like at the beginning:
Here's what they look like after following the steps I listed:
Does anyone know of a way around this or is this just a bug in Xcode? I submitted a bug report to Apple about it months ago and have not received a response. I've also received no response to a question about it in the developer forums.
Update: If you have a project with multiple targets, only the schemes for the selected target get screwed up after switching branches.
Update: Here's my .gitignore
# the build
build
# temp nibs and swap files
*~.nib
*.swp
# OS X folder attributes
.DS_Store
# user-specific XCode stuff
*.pbxuser
*.mode1v3
*.mode2v3
*.perspectivev3
*.xcuserstate
project.xcworkspace/
xcuserdata/
This happens every time for me. It's most certainly a bug. I just click in the build target version box (5.0, etc) and then out again and it resets itself. No need to open and close the project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With