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

前端 未结 5 399
执念已碎
执念已碎 2021-02-05 00:52

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 b

相关标签:
5条回答
  • 2021-02-05 01:23

    you can find the old version of XCode on the the Apple offical site here and download .dmg of xcode 5 or 6.1 for example :

    I do this and it's ok for me.

    0 讨论(0)
  • 2021-02-05 01:32

    For me closing the prompt and smashing keys (alt F4, I know that its not windows) before the next prompt opened worked... qt is running fine now, as it doesn't need the old version.

    0 讨论(0)
  • 2021-02-05 01:36

    taken from the link above, this resolved my issue:

    sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer 
    
    0 讨论(0)
  • 2021-02-05 01:37

    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.

    0 讨论(0)
  • 2021-02-05 01:42

    The solution that worked for me (on OSX Sierra XCode 8.2.1) is to open XCode Preferences -> Locations.

    There is a drop-down menu named Command Line Tools. Select the available XCode version here. Then restart the Qt Creator installation.

    0 讨论(0)
提交回复
热议问题