iOS용 Qt - 소스 코드로부터 빌드하기
소스 코드를 사용하여 iOS용 Qt를 빌드하려면 Command Line Tools가 설치된 Xcode가 필요합니다. 터미널에서 ` xcode-select --install ` 명령어를 직접 실행하거나 Homebrew를 통해 패키지로 Xcode Command Line Tools를 설치할 수 있습니다. Qt 소스 코드는 리포지토리를 클론하거나 소스 패키지를 다운로드하여 얻을 수 있습니다.
Qt를 크로스 빌드하려면 먼저 호스트용 Qt 빌드가 필요합니다. 자세한 내용은 Qt 크로스 컴파일을 참조하십시오.
그런 다음 Qt를 구성하고 빌드할 수 있습니다. 이 작업은 Qt 최상위 디렉터리에서 수행됩니다:
> ./configure -platform macx-ios-clang -release -qt-host-path <path_to_host_qt_installation>참고: ninja 실행 파일이 있는 경우,configure는 항상 Ninja 생성기 및 빌드 도구를 사용합니다. Ninja는 크로스 플랫폼이며, 기능이 풍부하고 성능이 뛰어나 모든 플랫폼에서 권장됩니다. 다른 생성기를 사용할 수도 있지만, 공식적으로 지원되지는 않습니다.
다른 configure 옵션에 대해서는 Qt configure 옵션을 참조하십시오.
그런 다음 cmake --build . --parallel 를 실행하기만 하면 됩니다.
참고: 기본빌드에는 시뮬레이터 및 기기용 라이브러리가 모두 포함됩니다. 단일 대상용으로 빌드하려면 -sdk 명령에 iphoneos 또는 iphonesimulator 인수를 함께 사용하십시오.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.