Xcode won't start after first launch? - xcode

I recently installed Xcode and after closing out of the first launch (because I realized I had more configuring to do). I cannot get it to re-launch. The icon will come up, but no program will show up. I do not get an error, and I am launching from the /Developer folder (not /Applications). I have tried re-installing/restarting multiple times to no avail. I have the latest version, and I am running Snow Leopard (10.6.6).

The icon will come up, but no program will show up.
Are you new to OS X? It sounds like you are describing the way OS X apps normally start up. By default, Xcode pops up a window with a list of most recent projects, but you can switch this off. It doesn't mean that Xcode isn't running, it just means you don't have any Xcode windows open. You can still select any of the usual menu items to start new projects, open existing projects, etc.

The answer to this problem is I believe easily sorted. Once you open X code and all you get is the menu bar at the top, go to Window, Welcome to x Code, then check the box bottom left hand corner of that screen 'Show this window when Xcode launches'
Job done ! Now every time you hit the Xcode icon where ever it is the welcome screen will open and from there you can proceed into the program.

Probably not your problem, but I had issues starting xcode with it trying to load up the last project I was working on. It would just hang and I had to force quit it.
In the end I deleted these directories:
project.xcworkspace/
xcuserdata/
and next time I tried to restart xcode it started fine.

Please go project folder and right click ."xcworkspace" and open "show package contents"-> xcuserdata and delete user folder and then relaunch.

In my case I launched XCode 6 (beta 7) on my MacBook Pro Mid 2010, and I had to wait for ~10minutes for anything to happen. I didn't see icon in dock, or even menu bar - just a reference in Force Quit Applications menu. After those 10 minutes classic alert with "You have downloaded Xcode from internet..." title appeared and then i had to wait another 5 minutes for another progress (installation of additional components).In overall it took Xcode 6 ~25 minutes to start.
So... Patience! :)

Related

XCode does not open at all on Mac Mini

I bought an M1 Mac Mini recently and tried to use XCode on it, but it does not open at all.
I tried re-install it and delete ~/Library/Developer directory, it seems nothing works.
This is my first Mac device and if I give more detail about what I mean by 'does not open at all' - it does nothing even if I double click the XCode from Applications directory or the bar at the bottom that has other installed applications showing on it(sorry, I don't know how this is called).
I can see the little grey dot under the icon which means it is running somehow, but nothing comes up on the screen. Then the grey dot goes away after few minutes with nothing happening.
How do I resolve this problem?
Making sure that the application itself is in the right place would be my first approach. Did you download Xcode from the App Store?
Here’s a link to someone with the same issue asking on the Apple developers forum
https://developer.apple.com/forums/thread/101265
Go to applications folder, right click, "get info" and then “Open using Rosetta”. Check the box.

Xcode launch screen minimising whenever I try to open project

I have been using the latest Xcode for weeks now with no issues. Today I tried to launch Xcode and was met with a bouncing icon which ultimately got no further.
So I restarted my Mac and tried again, this time with success, I got as far as the launch screen
Now what I have is I try to open the project that I was using yesterday (I have tried other projects) and the launch screen disappears.... and nothing happens, if I click Xcode's icon in the launch bar (along the bottom) the launch screen reappears.
Xcode is not closing so it's not crashing as far as I can tell
every so often it does give me the spinning circle and then crash.
I have also reinstalled Xcode but nothing has changed
Macbook air 2017 -
macOS Big Sur (11.2.3) -
Xcode 12.4 (12d4e)
Incase anybody else experiences this issue I will answer this question here.
This appears to be a bug with the Xcode launch screen for this version of Xcode.
My solution was to simply click the checkbox that says "show this window when Xcode launches" to turn that off
relaunch Xcode and open my project from the file menu.
Thanks matt for the suggestion :)

Destination toolbar disappeared on XCode 6.4

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.
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.
Not a fix as such but you can work around it using the menus: Product > Scheme and Product > Destination
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:
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.
Go to Product then Destination and choose at which simulator or device you want to test your build.
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.
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.
I make my XCode screen little big and now find both options.
On XCode 9.0 beta, this worked for me: select View -> Show Toolbar from menu
right click on title bar -> select show toolbar
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.

Simulator in use and even restarting XCode doesn't solve it

I sometimes get a dialog in Xcode which states "Simulator in use." Restarting Xcode didn't help.
I have no Simulator Icon in the Taskbar to quit it and I have no running Simulator.
Is there any solution without rebooting?
I know some of these points to not adress your specific issue since you wrote restarting Xcode would not help you but I'll try to provide a full list of possible fixes for people who might stumble upon this one day.
Is the "Stop" Button in the left corner of Xcode still clickable ? ==> Click It
Try to reset contents & settings of iOS Simulator
Clean Build & Clean Project
Quit iOS Simulator (look at the Activity Monitor if there is still something running)
Restart Xcode
Restart Mac
This is all I can think of. For me most of the times I can resolve it by just restarting Xcode. As you wrote this does not work for you so maybe some of the other points of my list will help you.
Normally this happens when you terminate the iOS Simulator but not the debug session itself, which is why most of the times the "Stop" button in the left corner is clickable most of the times...
This dialog (and the state that triggers it) comes entirely from Xcode and not the simulator itself. This dialog will present itself if Xcode is already using the simulator from another workspace. For example, if you have three projects open at the same time and you do a Build&Run (eg: click "play") in one of them, you will get this dialog if you do a Build&Run in one of the other projects.

xcode 4.3.2 process hangs

I have run into a rather annoying bug in Xcode 4.3.2.
If you run a process from within Xcode, then stop the simulator directly (outside of Xcode), Xcode still shows the process as running and effectively disables any further interaction with the simulator.
I can't stop the process from within Xcode (no response), and I can't start a new process either as Xcode sees the simulator as being in use. Shutting down the simulator does not notify Xcode either, so I have no option but to shut down Xcode and open it up again But even that does't work as Xcode hangs whilst trying to shut down the process too! So I have to force quit Xcode!
Has anyone found a way round this? I realise I should now only operate the simulator from within Xcode, but I am used to being able to operate the simulator independently.
thanks
I was having similar issues with Xcode 4.3.2. I fixed them by doing the following:
Launch Xcode.
Close any open projects.
Open Organizer.
Delete project form left panel using the gear icon on the bottom left. Select "Remove from Organizer...". This clears all the data about your project that Xcode has cached (indexes, DerivedData, Snapshots, etc.).
5). Re-open project.
Since doing this, my Xcode hanging issues have disappeared.
Here are the steps I follow when this happens:
Start the simulator if it isn’t already running
Choose the option “Reset Content and Settings…” from the iOS Simulator menu
Clean and rebuild the project

Resources