how to re-install Xcode 4.5? - xcode4.5

My Xcode is not working properly I have downloaded from apples website.It show following error message.Basically i want to re-install Xcode as my current version having some bugs.
What is safest way to re-install Xcode ?

You can remove everything by opening a terminal and typing
sudo /Developer/Library/uninstall-devtools --mode=all
(You will need su access)
Then go to the App Store -> Categories -> Developer Tools -> xCode and install.
Source: http://osxdaily.com/2012/02/20/uninstall-xcode/

Related

No documentation available in Qt Creator

When I hit F1 while the cursor marks a classname in the source code, I get the message on the right side of my IDE: "No documentation available."
How can I fix this?
I run Qt on Linux Mint 17.1 and I'm just getting familiar with Linux :-)
Thank you.
As #WCoder suggested, run:
rm -fr ~/.local/share/QtProject* ~/.config/QtProject*
In addition, install Qt, the latest version of which is 5.5.1 at the time of writing this post: https://download.qt.io/official_releases/qt/5.5/5.5.1/
In Qt Creator, go to Tools → Options → Help → Documentation and add all the *.qch files in ~/Qt5.5.1/Docs/Qt-5.5 and the one in ~/Qt5.5.1/QtWebView/1.1/ (assuming you installed Qt into your home directory, ~/ ).
I had a strange problem (freeze after start QtCreator) and I got it fixed after remove the diretory ~/.config/QtProject
May be this is a problem too: ~/.local/share/QtProject
You can reload the help files with the qtcreator options.
In case QtCreator was installed from a system repository via sudo apt install qtcreator then one will need sudo apt install qt5-doc to get IDE's integrated help files.

How to open project files with Xcode 4 by default while having Xcode 5 installed alongside

Xcode 4 is still my main IDE for iOS development. To try the upcoming iOS 7 I installed Xcode 5 Developer Preview and now all the files that were used to open in Xcode 4 now open in Xcode 5.
How can I revert Xcode 4 to be default editor again without uninstalling Xcode 5?
After reading about LaunchServices in OS X I have finally found the solution, thanks for the hint #peter-m.
To modify files association for certain app one can use lsregister tool. So to re-register the app there is -f parameter, and to unregister -u. Everything can be in fact done with just one command:
$ lsregister -f /Applications/Xcode.app
Or if you want to unregister Xcode 5 and not touch manually set associations earlier:
$ lsregister -u /Applications/Xcode5-DP5.app
lsregister is located in /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/, so add it to your $PATH
Re-login to OS X for changes to apply.
Assuming you don't have any Xcode 5 projects yet, how about manually:
Find an existing XCode 4 project (*.xcodeproj) with the Finder
Do a Get Info of the file
Change Open with: to your desired version of Xcode
Click on Change All
Repeat for all types of files that you want to open with XCode 4
Or if you want to try something more automatic take a look at: programmatically-script-atically-changing-the-default-open-with-setting
Based on the comment below, the problem seems to be with command line builds picking the wrong version of Xcode. In that case I suggest looking at: xcode-build-and-archive-from-command-line, especially the Reid's comment to his own answer which says:
Works fine in Xcode 4.4, and I'm sure it was fine in 4.3 as well. Make sure you have selected the correct Xcode release by using:
xcode-select <path to Xcode.app>
So perhaps the correct solution is based around understanding:
xcode-select -- Manages the path to the Xcode folder for Xcode BSD tools.

Qt Creator needs a compiler set up to build. Configure a compiler in the kit options

I Have Installed Qt Creator5 with latest binaries.
but when i am running any program it is giving me this error.
:-1: error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.
i have searched the whole internet for answer but its inadequate and not helping.
kindly reply the way to get rid of this error.
i was also having the same problem so what i did is
For linux
sudo apt-get install g++
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev
and then closed the qt creator and restarted it and it worked
i do not know which of the above two made it work but it worked !!
For Windows
Below given solution have worked for few people. so it is worth a try.
Delete this file
C:\Users\AppData\Roaming\QtProject\qtcreator\toolchains.xml
to solve the problem.
For me on Windows 7 this was solved by clicking on the arrow icon next to the computer icon on the bottom left of the Qt Creator screen above green arrows and then double clicked a compiler on the list and rebuild the project.
* for windows users only *
Before continuing to next steps make sure u have downloaded latest version of Qt.
Download and install minGW-64-bit from link:
https://sourceforge.net/projects/mingw-w64/files/latest/download
Remember The directory to which you install minGW.
Open Qt creator and go to tools -> options -> Build and Run
In Compilers tab Select add -> MinGW -> Name: MinGW path: Browse for mingw-w64.bat (you will find this file in the directory in which you have installed MinGW).ABI: x86 Windows msvc2015 pe 64bit Don't forget to apply your edits.
Go to Kit -> add Name: GCC Device Type: Desktop Device: Local PC (Default for desktop) Compiler: minGW Qt Version: select newest version Apply changes and restart qt
While creating new project make sure you use GCC as kit
If it still doesn't works Click computer icon on bottom left above play button -> GCC -> Build
OR
Go to projects (It is in the menu on left hand side) -> Build Steps -> make -> Override minGw31-make.exe -> browse to path in which you have installed minGW/bin\mingw32-make.exeDo the same for clean steps too
If u Still get any error after these steps try setting Environment Variables
Press Win+Q
Type " Environment variables "
click on " Edit the system environment variables "
System Properties -> Advance -> Environment Variables
Click on path (NOTE : Use These steps very carefully and do not mess with other options)
Click edit
press right arrow to go to end of text
type a semi-colon (if it isn't at the end of it because all the system paths are distinguished by a semi-colon)
paste path "MinGW_installation_directory\bin" (In my case it was "G:\Qt\Tools\mingw32\bin"). Make sure you copy and paste CORRECT path
Click OK and apply the changes.
That should do it !!!
user2304430 has it right, I struggled also figure it out. Above the green Run/Debug buttons in the bottom left, there's a computer icon with a pop-out menu. In there, you have to select your kit.
I went in circles for half an hour checking that my kits were set up right in options. But you actually have to select the kit in the Computer Icon -> pop-out menu in the bottom left before it does anything.
Amazingly, the first many Google pages for the error don't show this, you'd think almost all new users run into this.
I had a similar issue when developing on my Mac -
I was trying to do desktop development with QT creator 3.3.0 based on QT 5.4.0 (Clang 6.0 (Apple)) on OSX 10.9. After trying to manually modify my kits to use GCC, G++, and CLANG. I finally found this really simple solution:
Delete the xxx.pro.user file and then restart QT Creator. It should then automatically pick up your compilers/environments.
Had the same issue on Fedora 22 after installing Qt5.5.
Installing the following packages did the trick:
sudo dnf install gcc-c++
sudo dnf install mesa-libGL-devel
When I installed Qt into folder ~/Qt/ and then manually renamed the folder into something other, I had similar problem. When I restored the folder name into the original ~/Qt/ (specified at the Qt installer), the problem has disappeared; all was solved.

How do I specify an installation location for Xcode 4.1 from the Mac App Store?

I just installed Lion, and downloaded Xcode 4.1 from the Mac App Store. I like having my Xcodes installed in /Developer directories that have their Xcode versions appended (e.g. /Developer-xcode3.2.6). Downloading Xcode 4.1 from the Mac App Store just gives me an installer app, which does not allow me to specify an installation location, as Xcode installers did in the past. When I ran the installer, it asked me to move old Xcode 3 installs out of /Developer, so is just renaming the /Developer directory sufficient? Will that break stuff?
Locate the 'Xcode Install' package. Show package contents. Inside the Resources folder you will find Xcode.mpkg. Install as usual.
renaming the folder should be enough but, yes, it may break stuff if you continue to use xcode 3. “it may” because you will still have a “/Developer” folder which will contain tools xcode use. if they (the tools) don't change too much between xc3 & 4, you shouldn't have any problem.
but stick with xcode4 and you won't have any problem at all.

How do I force install XCode 4.1 from the app store?

the app store botched its installation of Xcode 4.1 (it turned claimed it was 4.0 but the app store claimed 4.1 was installed). So I deleted the /Developer folder thinking this would let me reinstall a clean Xcode 4.1.
The app store still thinks Xcode 4.1 is installed and will not download or reinstall any version of Xcode. How do I force install Xcode 4.1?
Just to explain further...
The App Store download had actually worked
What you saw when you looked at Xcode was your old install, because you had not yet run the installer at that point.
Just find the "XCode installer" in your applications folder and run that to complete the install.
It caught me out too.
Do you have the application "Install Xcode" in your /Applications folder. That worked for me.
Deleting the Install Xcode app works for me - after that I have the opportunity to download that monster all over again
To make a clean installation of Xcode first completely uninstall the previous Xcode version:
From a Terminal window type:
$ sudo /Developer/Library/uninstall-devtools --mode=all
That process may take a while!
Then try your installation again.

Resources