Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
mac:errors:xcodebuild [2017/01/26 18:35] mirocowmac:errors:xcodebuild [2018/02/21 00:51] (текущий) – [Ошибки] mirocow
Строка 2: Строка 2:
  
  
-===== Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild. =====+<code bash> 
 +$ brew install qt 
 +</code> 
 +===== Ошибки ===== 
 + 
 +== Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild. ==
  
 There is a similar problem with building Qt itself with Xcode 8. I have the Qt 5.7 source code on my machine with Xcode 8 GM, and I when I run 'configure' I get the same message about needing to agree to the Xcode license. Going through the agree procedure (which is described wrongly in the error message, incidentally) makes no difference. There is a similar problem with building Qt itself with Xcode 8. I have the Qt 5.7 source code on my machine with Xcode 8 GM, and I when I run 'configure' I get the same message about needing to agree to the Xcode license. Going through the agree procedure (which is described wrongly in the error message, incidentally) makes no difference.
 (https://forum.qt.io/topic/71119/project-error-xcode-not-set-up-properly/7) (https://forum.qt.io/topic/71119/project-error-xcode-not-set-up-properly/7)
 +== <Growl/Growl.h> file not found in xcode ==
  
-==== 5.6 ====+<code>To include a framework in your Xcode project, choose Project > Add to Project and select the framework directoryAlternatively, you can control-click your project group and choose Add Files > Existing Frameworks from the contextual menu. When you add an existing framework to your project, Xcode asks you to associate it with one or more targets in your project. Once associated, Xcode automatically links the framework against the resulting executable.</code>
  
-<code bash> +== xcode-select: error: tool 'xcodebuild' requires Xcode ==
-$ cd /opt/Qt5.6.1/5.6/ +
-$ echo "$(cat clang_64/mkspecs/features/mac/default_pre.prf | sed -'s~isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null")))~isEmpty($$list($$system(\"/usr/bin/xcrun -find xcodebuild 2>/dev/null\")))~g')" > clang_64/mkspecs/features/mac/default_pre.prf +
-</code>+
  
-==== 5.7 ====+<code> 
 +xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance 
 +</code>
  
 <code bash> <code bash>
-cd /opt/Qt5.7.0/5.7/ +xcode-select --install 
-echo "$(cat clang_64/mkspecs/features/mac/default_pre.prf | sed -e 's~isEmpty($$list($$system("/usr/bin/xcrun -find xcrun 2>/dev/null")))~isEmpty($$list($$system(\"/usr/bin/xcrun -find xcodebuild 2>/dev/null\")))~g')" > clang_64/mkspecs/features/mac/default_pre.prf+xcode-select --switch /Library/Developer/CommandLineTools 
 +xcode-select -s /Applications/Xcode.app/Contents/Developer
 </code> </code>