XCode 8 error “Project ERROR: Xcode not set up properly”, even though the license has been accepted

前端 未结 3 542
故里飘歌
故里飘歌 2020-12-28 17:12

I can no longer build Qt project after updating to Xcode 8 today. I get the following error despite having followed the instructions from this answer.

<
相关标签:
3条回答
  • 2020-12-28 17:27

    Run MaintenanceTool in Qt directory and update to version 5.8

    0 讨论(0)
  • 2020-12-28 17:36

    I managed to get capybara-webkit (which uses QT) built with XCode 8 / MacOX Sierra after following these instructions (found here: https://forum.qt.io/topic/71119/project-error-xcode-not-set-up-properly/7)

    1. Move to the folder where you install Qt.
    2. Open in a text editor the file at Qt_install_folder/5.7/clang_64/mkspecs/features/mac/default_pre.prf
    3. Find the line with text (for me it was line 15):

      isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null")))): \
      

      Replace line with:

      isEmpty($$list($$system("/usr/bin/xcrun -find xcodebuild 2>/dev/null"))): \
      
    4. Save & re-compile

    0 讨论(0)
  • 2020-12-28 17:38

    A cleaner solution

    cd /Applications/Xcode.app/Contents/Developer/usr/bin/
    sudo ln -s xcodebuild xcrun
    
    0 讨论(0)
提交回复
热议问题