出现错误: Xcode not set up properly. You may need to confirm the license agreement by running /

解决办法如下:

Xcode 8版本以上的

1: vi打开文件

  Qt_install_folder/5.7/clang_64/mkspecs/features/mac/default_pre.prf

  (具体的地址需要根据自己的安装路径找)

2: 找到下列内容

 isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null")))
  替换为以下:

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

 

Xcode 8版本以下的

1: 终端运行以下命令

  sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

2: 终端运行以下命令

  xcodebuild -license

相关文章:

  • 2022-12-23
  • 2021-09-18
  • 2021-07-15
  • 2022-12-23
  • 2021-06-09
  • 2022-01-18
  • 2021-07-15
猜你喜欢
  • 2021-06-28
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
  • 2021-06-27
相关资源
相似解决方案