58
votes

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)

XCode6Toolbar

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.

11
Even i'm facing the same issue please some one help us out.Ankit Jain
As I added to my question, you can use the Product/Destination Menu as a workaround. It is not the best way but it works :)CrApHeR
same problema here and the same workaroundClaudio Castro
The same problem! Thanks Apple!! Every time you change normal to debility!Genevios
Same problem on first start up of Xcode 7. I just quit Xcode, started Xcode again.. Appeared as it should have in the beginning :)Luke

11 Answers

57
votes

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.

26
votes

Not a fix as such but you can work around it using the menus: Product > Scheme and Product > Destination

9
votes

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:

7
votes

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.

toolbar is missing

But, if you expand the window far enough, it shows back up again.

There it is 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.

5
votes

Go to Product then Destination and choose at which simulator or device you want to test your build.enter image description here

4
votes

I'm running with same problem. You can select device or change scheme using below steps:

  1. Select Product from menu
  2. Select Scheme or Destination
  3. Select required Scheme option or Destination option

Screenshot for fix

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.

Screenshot for perfect solution

1
votes

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:

  1. Remove your project file on disc (or move it to a different folder)

  2. Open the Welcome to Xcode window by shift+command+1

  3. 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.

enter image description here

  1. 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.

0
votes

I make my XCode screen little big and now find both options.

0
votes

On XCode 9.0 beta, this worked for me: select View -> Show Toolbar from menu

-1
votes

right click on title bar -> select show toolbar

-2
votes

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.