久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Qt Creator - 項(xiàng)目錯(cuò)誤:Xcode 設(shè)置不正確.您可能需要

Qt Creator - Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild(Qt Creator - 項(xiàng)目錯(cuò)誤:Xcode 設(shè)置不正確.您可能需要通過(guò)運(yùn)行/usr/bin/xcodebuild 來(lái)確認(rèn)許可協(xié)
本文介紹了Qt Creator - 項(xiàng)目錯(cuò)誤:Xcode 設(shè)置不正確.您可能需要通過(guò)運(yùn)行/usr/bin/xcodebuild 來(lái)確認(rèn)許可協(xié)議的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

我剛剛安裝了 Qt 5.5 并且第一次在 OS X 上使用 Qt Creator.當(dāng)我第一次安裝 Qt 時(shí),它給了我一條錯(cuò)誤消息Xcode 5 not installed",我認(rèn)為這很奇怪,(我有 Xcode7 測(cè)試版),但安裝還是成功完成.

I just installed Qt 5.5 and am using Qt Creator for the first time on OS X. When I first installed Qt, it gave me an error message 'Xcode 5 not installed' which I thought was strange, (I have the Xcode 7 beta), but the install completed successfully anyways.

現(xiàn)在,當(dāng)我開(kāi)始或打開(kāi)一個(gè)項(xiàng)目時(shí),出現(xiàn)錯(cuò)誤:

Now, when I start or open a project, I get the error:

項(xiàng)目錯(cuò)誤:Xcode 設(shè)置不正確.您可能需要通過(guò)運(yùn)行/usr/bin/xcodebuild 來(lái)確認(rèn)許可協(xié)議.

Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.

當(dāng)我在終端中運(yùn)行 /usr/bin/xcodebuild 時(shí),我得到以下信息:

When I run /usr/bin/xcodebuild in Terminal, I get the following:

xcode-select: 錯(cuò)誤:工具 'xcodebuild' 需要 Xcode,但活動(dòng)開(kāi)發(fā)者目錄 '/Library/Developer/CommandLineTools' 是命令行工具實(shí)例

xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

我不確定 Xcode 與 Qt Creator 有什么關(guān)系,除非它與訪問(wèn)庫(kù)以實(shí)現(xiàn)跨平臺(tái)兼容性有關(guān),但有沒(méi)有辦法解決這個(gè)問(wèn)題?

I'm not sure what Xcode has to do with Qt Creator, unless it has something to do with accessing libraries for cross-platform compatibility, but is there a way to fix this issue?

推薦答案

>= Xcode 8

在 Xcode 8 中,正如 Bruce 所說(shuō),當(dāng) Qt 試圖尋找 xcrun 而它應(yīng)該尋找 xcodebuild 時(shí),就會(huì)發(fā)生這種情況.

In Xcode 8, as Bruce said, this happens when Qt tries to find xcrun when it should be looking for xcodebuild.

打開(kāi)文件:

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

替換:

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

與:

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

~>Xcode 8

Xcode 8 之前,在安裝 Xcode 后安裝命令行工具時(shí)會(huì)出現(xiàn)此問(wèn)題.發(fā)生的事情是 Xcode-select 開(kāi)發(fā)者目錄被指向 /Library/Developer/CommandLineTools.

Before Xcode 8, this problem occurs when command line tools are installed after Xcode is installed. What happens is the Xcode-select developer directory gets pointed to /Library/Developer/CommandLineTools.

使用以下命令將 Xcode-select 指向正確的 Xcode Developer 目錄:

Point Xcode-select to the correct Xcode Developer directory with the command:

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

使用命令確認(rèn)許可協(xié)議:

Confirm the license agreement with the command:

sudo xcodebuild -license

這將提示您通讀許可協(xié)議.

This will prompt you to read through the license agreement.

輸入同意以接受條款.

這篇關(guān)于Qt Creator - 項(xiàng)目錯(cuò)誤:Xcode 設(shè)置不正確.您可能需要通過(guò)運(yùn)行/usr/bin/xcodebuild 來(lái)確認(rèn)許可協(xié)議的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

What is the fastest way to transpose a matrix in C++?(在 C++ 中轉(zhuǎn)置矩陣的最快方法是什么?)
Sorting zipped (locked) containers in C++ using boost or the STL(使用 boost 或 STL 在 C++ 中對(duì)壓縮(鎖定)容器進(jìn)行排序)
Rotating a point about another point (2D)(圍繞另一個(gè)點(diǎn)旋轉(zhuǎn)一個(gè)點(diǎn) (2D))
Image Processing: Algorithm Improvement for #39;Coca-Cola Can#39; Recognition(圖像處理:Coca-Cola Can 識(shí)別的算法改進(jìn))
How do I construct an ISO 8601 datetime in C++?(如何在 C++ 中構(gòu)建 ISO 8601 日期時(shí)間?)
Sort list using STL sort function(使用 STL 排序功能對(duì)列表進(jìn)行排序)
主站蜘蛛池模板: www.成人在线| 精品少妇v888av| 久久久在线视频 | 亚洲免费视频一区 | 日本性网站 | 日本久久久久 | 在线观看一区 | 亚洲精品91天天久久人人 | 国产欧美久久久 | 中文字幕亚洲一区 | 精品久久久久久久久久久久久久 | 日本国产欧美 | 成人午夜视频在线观看 | www午夜| 青青草视频免费在线观看 | 亚色在线 | 日韩精品视频免费在线观看 | 日韩av在线免费 | 99视频+国产日韩欧美 | 97国产在线视频 | 精品久久视频 | 天天操狠狠干 | 亚洲精品一区二区三区在线观看 | 日韩a视频 | 免费黄色片视频 | 国产在线一区二区 | 毛片一区 | 久久小视频 | 欧美视频在线播放 | 黄色小说网站在线观看 | 亚洲精品中文字幕乱码三区91 | 久久久久网 | 日本黄a三级三级三级 | 青娱乐99| 国产一区二区欧美 | 手机看片欧美 | 国产探花在线精品一区二区 | 黄色片网站免费 | 丰满女人裸体淫交 | 国产精品福利在线 | 国产在线观看一区 |