Показать страницуИстория страницыСсылки сюдаCopy this pageExport to MarkdownODT преобразованиеНаверх Вы загрузили старую версию документа! Сохранив её, вы создадите новую текущую версию с этим содержимым. Медиафайлы====== Xcode ====== ===== 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. (https://forum.qt.io/topic/71119/project-error-xcode-not-set-up-properly/7) ==== 5.6 ==== <code bash> $ cd /opt/Qt5.6.1/5.6/ $ 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 </code> ==== 5.7 ==== <code bash> $ cd /opt/Qt5.7.0/5.7/ $ 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 </code> ===== Ошибки ===== <Growl/Growl.h> file not found in xcode <code>To include a framework in your Xcode project, choose Project > Add to Project and select the framework directory. Alternatively, 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> ==== xcode-select: error: tool 'xcodebuild' requires Xcode ==== <code> xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance </code> <code bash> $ xcode-select --install $ xcode-select --switch /Library/Developer/CommandLineTools $ xcode-select -s /Applications/Xcode.app/Contents/Developer </code>СохранитьПросмотрРазличияОтменить Сводка изменений Примечание: редактируя эту страницу, вы соглашаетесь на использование своего вклада на условиях следующей лицензии: CC0 1.0 Universal