Destination toolbar disappeared on XCode 6.4
XcodeIos SimulatorXcode Problem Overview
Today in the morning I tried to compile my project to run in my device and I found the destination toolbar disappeared and I cannot choose my IOS device or IOS Simulator device as target. (I can do it in the Product/Destination Menu)
After some research I found the >>
at the right on the screen and when I pushed a Scheme option appeared but it is disabled and I can't enable again.
This is what I tried with no success:
-
Open an old project to see if the problem was in my project
-
Create a new project (with Swift and Objective C but I don't think this make any difference)
-
Restart my computer
-
Hide and show the toolbar (View menu/Hide Toolbar and the View menu/Show Toolbar)
-
I tried all the previous options with the device connected and disconnected
I have installed the IOS Simulator 8.4 (when I run my project it runs in the last selected simulator) and XCode 6.4.
Xcode Solutions
Solution 1 - Xcode
Looks like Xcode hides that menu when the window is a certain size. I have to make my window quite large before it comes back.
Solution 2 - Xcode
Not a fix as such but you can work around it using the menus: Product > Scheme and Product > Destination
Solution 3 - Xcode
You're probably running into the same issue I am. Like @BrandonWilliams said in his answer, it appears again if the Xcode window is wide enough. The underlying cause, for me at least, seems to be that in this build of Xcode (6.4) running on El Capitan beta 2 (with Xcode 7 beta installed), I am seeing duplicate simulators for iOS 8.4. And since there are two of the same version, the Schemes dropdown shows some sort of long GUID next to each one, causing the Scheme dropdown to be quite large:
http://i.stack.imgur.com/ih8gc.png" width="443" height="486" />
Solution 4 - Xcode
I came to SO looking for an answer but realized that I had seen this issue before.
So the problem is basically that auto layout sucks (I mean it is not working properly in Xcode 6) and on El Capitan, the destination toolbar is for some reason hiding instead of collapsing properly. So when your Xcode window is narrow, the destination toolbar disappears.
But, if you expand the window far enough, it shows back up again.
In case you can't tell, in the first screenshot, the window is about 1241 pixels wide and in the second screenshot the window is 1541 pixels wide.
Solution 5 - Xcode
Solution 6 - Xcode
I'm running with same problem. You can select device or change scheme using below steps:
- Select Product from menu
- Select Scheme or Destination
- Select required Scheme option or Destination option
Alternative Solution:
The only solution is to use Xcode 7 or above
. I've installed Xcode 7.1 and found Scheme/Simulator list available. Refer screenshot.
It seems that Xcode 6 or below doesn't support OS X El Capitan.
Solution 7 - Xcode
I am still seeing this problem in Xcode 7.2 on iMac with resolution 1920x1080. Resizing the XCode windows dens't help. I can have the menu bar back if I push the green button and go to full screen mode. But that's pretty annoying. This is how I finally figure out a solution that works for me. I notice that only if I open the project file that I have been working daily that the menu bar is missing. If I create a new project, the menu bar is there. And here is my solution:
-
Remove your project file on disc (or move it to a different folder)
-
Open the Welcome to Xcode window by shift+command+1
-
Make sure your project is no longer under this list. If it is still there, click on it and Xcode will tell you the project is not found and it will be removed.
- Add the project file back and open it and I have my menu bar back (if you have moved it, simply opening it from a different file location may work I guess)
I guess the problem is that some cache value in Xcode about the project file is messed up somehow. Hope this helps.
Solution 8 - Xcode
I make my XCode screen little big and now find both options.
Solution 9 - Xcode
On XCode 9.0 beta, this worked for me: select View -> Show Toolbar
from menu
Solution 10 - Xcode
right click on title bar -> select show toolbar
Solution 11 - Xcode
Fixed it by deleting the following file ~/Library/Preferences/com.apple.dt.Xcode.plist
and restarting Xcode.
The downside is that Xcode preferences dropped to defaults obviously.