XCode strange behavior - xcode

I have strange behavior of XCode, if someone could explain it to me it would be very useful.
So the thing is that I've updated XCode 6.2 to 6.3 at 10th April.
Mac App Store app says that my Xcode is 6.3 now, but Xcode itself says that it is still 6.2 (in the XCode > About Xcode menu).
Why?

Odds on, your Dock has an Xcode from another location on your disk. Right click on the dock icon when it's open, select Options, then Show in Finder. What's the path to the folder (right click on the title of the Finder window)? If it's not /Applications, then drag it off the Dock, and grab the App Store version from /Applications.

Related

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 :)

Xcode 9 Beta 3 - Where is iOS11 Simulator?

I have just installed XCode 9 beta 3.
But I don't see an iOS 11 version under Pref, Components.
How can I setup an iOS simulator?
1) Open the Devices and Simulators window:
Window -> Devices and Simulators
2) Click the plus in the lower lefthand corner
You will see dialog to add a new simulator
3) Select a device (i.e. iPhone 7) that supports iOS 11 and click create
I had a similar issue only seeing iPhone 5 and 6 sims and not able to create / download iPhone 7 simulator with iOS11. My solution was to move Xcode 9 beta 3 from the downloads folder into the Applications folder along side xcode 8. I didn't realise it was still in the DL folder. Once launched from the Applications folder Xcode 9 beta 3 loaded with all the sims in place. Worth checking if your's is still in the downloads folder too with a previous version of Xcode in the Applications folder.
Follow these steps to add a (new) simulator
Click on Simulator icon and open simulator list.
At the end of list, there is an option to add new simulator "Add Additional Simulator". That will open 'Device & Simulator' window.
Switch to 'Simulator' tab.
There are three field in simulator tab.
Click on '+' icon, on left bottom corner of window.
Simulator Name: Enter simulator name here
Device Type: Select iPad from this dropdown list
OS Version: Select OS version from this dropdown list
Click on 'Create'
A new simulator will be added in your Simulator option list.
Look at this snapshot to understand flow of above steps:
And if there is no simulator/OS version in simulator list, you're looking for,
Click on Simulator icon and open simulator list.
At the end of list, there is an option to add new simulator "Download Simulator". That will open 'Component' window (from Xcode >> Preferences).
Select/click simulator from list, which you need to download.
Look at this snapshot:

Xcode 7.3 does not show up any downloadable iOS simulator

Just upgrade my Xcode from 7.2.1 to 7.3. Have no idea why. Do I have choices other than delete Xcode and reinstall again? (which I highly don't like).
BTW, the documentation tab is fine. Just a blank simulators.
Update: If I click "check and isntall now", it reports:
Could not download and install OS X 10.11.4 Documentation. The certificate for this server is invalid. You might be connecting to a server that is pretending to be “devimages.apple.com.edgekey.net” which could put your confidential information at risk.
I checked cert on https://devimages.apple.com.edgekey.net, seems fine..
In Xcode 7.3 I found the following way to add older simulator versions.
1.) Choose "Window" from the menu bar
2.) Choose "Devices" from the drop down menu list
Result: Devices window opens
3.) Click the "+" icon in the lower left-hand corner of the window.
4.) Choose the Add Simulator option
Result: You can add a simulator (and download older ones).

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.

Xcode 4.3 getting freeze at startup

I have installed Xcode 4.3 version. I can't click on any button of the Xcode bar, because Xcode freeze at startup, and if i move the cursor on the bar, i have only the loading cursor available. So i can't click on Window Tab to restore the Welcome Window, and i can't open a new project.
It seems that Xcode is not loading any project, and maybe it is the problem it has not found any project, and it continues to search anyway. If I try to launch an existing project, Xcode tries to open it, but the result is always the blank window with "No Editor".
Please help me to come out from this issue or any one please tell me how can I remove all the logs, settings and back up files of Xcode
Thanks in Advance
I solved the problem :) Simply download and install the latest version of iTunes, it's fixed :) Now i can work with Xcode. I dont know whats the connection between Xcode and iTunes. Cheers....

Resources