Xcode error "cannot set a default platform" - xcode

I dont know if this fits stackoverflow.com, but I cant even open Xcode. It just gives me this error "The MAC OS X platform is missing - cannot set default platform."
I have just installed Xcode. I dont get the error message, and I have never seen it before. Cant find anything on google.
Is there anyone who can give me a hint in form of a link, or paper?

The problem was that I have done a complete reinstall of OS X with out zero writing the harddisk first. I have solved the problem by simple zero write the harddisk, and then reinstalled OS X again. Now I can use Xcode.

Related

Distance lines are not showing in interface editor

after installing latest Mac OS X (El Capitan) I found that distance lines inside Xcode interface editor does not appear anymore after pressing alt key. I do not know if system update has something to do with it ... maybe I just pressed some kind of key configuration which disabled distance guides. Did someone ever had similar situation? Below I attached link to image which exactly shows lines I am talking about.
https://www.dropbox.com/s/qoy8wvvddxxaupy/2015-10-06_1341.png?dl=0
Ok so It turned out that the problem was in having two Xcode versions installed on one machine. I mean that currently I have Xcode 6.4 and 7.1 on my mac and version 6.4 behaves sometimes quite strange (for example I am not able to add new source file directly to project because I am not able to choose any group option). 7.1 is ok. So if you have some problems in similar configuration then get rid of Xcode 6.

Xcode 5.1 and Simulator In Use Error

I've noticed that since upgrading to Xcode 5.1, the "Simulator In Use" error pops up randomly when trying to build/run. Sometimes nothing happens, and other times I get the error.
Even if there are no apps running, or the simulator is not running at all, I still encounter the error, which persists until I restart Xcode.
How can I fix this?
Fix this issue using below approach :
Quit the simulator and Xcode as well.
OR
Reset the content of Simulator. Goto to "iOS Simulator" menu -> "Reset contents and Settings.."
When Ever you get an error like "Simulator In Use" Just follow the following steps.
1 ) Just remove derived data for the particular application. ( or all the derived data for not needed).
2 ) Delete Derived data also from trash folder if any.
3 ) Clean Your Project.
4 ) Build and run the Project.
Quitting the xCode and restarting solves the problem but it has become, at least with me, perpetual. I have to quit and restart again so many times already. There's got to be a fix for this.
The upgrading Mac OS version from 10.8.5 to 10.9.2 fixed this issue for me.

Xcode 5 on Mountain Lion 10.8.5 won't load

Since I installed the Xcode 5 from the App Store I can't start Xcode.
I click on the Xcode icon, then icon bounce 1 time then nothing.
The program doesn't respond...
I tried to uninstall and reinstall Xcode but I got the same problem.
I think the best way is to completely uninstall XCode and its accompanying utilities.
You can follow this link for that.
I am plagued by this problem. Ever since I updated to XCode 5 I have had nothing but trouble. When I open it it does nothing but it does say Application Not Responding when you right-click the icon in the tray.
Once I walked away and hours later when I came back it was open. So I tried it again and waited. around 30 minutes later, it opened. I've figured out that if you wait long enough, eventually it opens.
I know this is only a temporary, partial solution, but it may be all you have until the release Mavericks. I have read in searching for a solution that XCode 5 works in 10.9 but developers struggle using it on 10.8.5 <----- specifically 5!
I just installed the 10.8.5 supplemental 1.0 update and it didn't change anything for me.
Try to open the program and see if letting it sit for a while maybe even overnight, and see if it opens like mine. If so, maybe someone can help with that extra information.
Well i have the exact same problem that you are facing. This is how you can solve it:
First of all just uninstall the current version of Xcode from your Mac completely. You can delete it from the Applications. After that you will still see the Xcode icon in the LaunchPad and i don't know why. You have to delete it from the LaunchPad too. Just by clicking and holding until the cross button appears and then press the cross button to delete.
Once this is done, don't download it from the App Store. Instead download from a direct link. Go to this LINK and find the Xcode and download the DMG file. Then you can install it and you will have no problem.
You can either waste your time troubleshooting the problem or you can just do what i told you to save some time. The choice is yours!
Hope this helps!

CodeBlocks Crashed on Mac

I have just installed CodeBlocks on my mac book air. My OS X version is 10.7.2. I have encountered some problems. Everytime when I select "Settings > Editor" and click "ok", my CodeBlocks crashed. And when I closed it, it pop up the message "The CodeBlocks terminated unexpectedly." (Sorry, I am not sure what the message of the English version is, because my locale is Traditional Chinese.) Does anyone knows what happend?
I've got the same problems.
However the thread
Making compiler setting stick in Mac OS X
showed me the way out. I figured out the 'wxSmith' plugins seem to be the source of my trouble.
I disabled them under: Plugins > Manage Plugins
I solved't disabling Code completion!
Step 1: Open Manage plugins...
Step 2: Disable Code completion.

Unable to install Xcode on Mac OS X Lion (10.7) [duplicate]

I am trying to install Xcode 4.1 GM on my Lion mac but it's not working. When it is almost finished, I get the popup to quit iTunes even though it is already quit. So the only option I have is to quit iTunes helper or alert in activity monitor, then it finishes the install. However then Xcode crashes on launch. Any ideas?
You can go into Activity Monitor and Quit the iTunes helper. That will also get Xcode to finish.
Looks like you've solved the install problem. It's not a solution per se, but setting Xcode to run in 32-bit mode fixed the crashing problem for me.
It's too early to say what the trade-off is (if any), but whatever it is, it's bound to be better than not being able to use it at all.
On a side note: please accept Phil's answer since he gave the correct solution to your original problem. C:
if you boot into single user mode (Press S when starting up), the installation works as it should. Xcode will then function without switching it to 32-bit mode.
Open "Activity Monitor" (press Command+Space to bring up spotlight, or find it in Applications.)
Sort by Process Name and find the process called "iTunesHelper".
From the "View" menu choose "Quit Process".
Then click on the "Force Quit" button. Xcode installation should continue now.
Try to use the xCode through the Finder after you get this problem. It happened to me, but I can still run the xCode.
I think it's something to do with your version of itunes is more updated than your Mac Os version.

Resources