Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
318 views
in Technique[技术] by (71.8m points)

macos - Attempt to install Qt on OS X gives 'You need to install Xcode 5.0.0', but this version is so old it's not available

I am a Windows/Linux developer who occasionally builds for OS X - particularly in Qt.

I have a simple Qt project that I have been developing on Windows. I now wish to build it on OS X.

I am running Yosemite. I have installed Xcode 7 and am attempting to install Qt 5.5.

When I run the Qt installer, immediately after the prompt to log in to Qt (which is successful), I receive the following error:

You need to install Xcode version 5.0.0.

Qt installation fails

I have attempted to locate Xcode 5.0.0 on the Apple Developer site, but this is 2 major versions behind the most recent version, and I cannot even find an installer for it.

More to the point, I do wonder why the most recent version of Qt requires a version of Xcode that is considered so old by Apple that it's not even available.

How do I overcome this problem so that I can get Qt installed on OS X?

question from:https://stackoverflow.com/questions/31554125/attempt-to-install-qt-on-os-x-gives-you-need-to-install-xcode-5-0-0-but-this

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I ran into the same problem and solved it by following the instructions here. This link describes a similar, but slightly different installer issue.

To summarize, you need to ensure that the Xcode command line tools are installed and set up correctly. I already had them installed, but had to go into Preferences -> Locations in Xcode and set the dropdown to the currently installed version.

The link shows an earlier version of Xcode where the path is actually Preferences -> Downloads -> Components.

Once I'd made this change, the installer continued successfully.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...