iOS용 Qt - 소스에서 빌드하기

소스에서 iOS용 Qt를 빌드하려면 명령줄 도구가 설치된 Xcode가 필요합니다. 터미널에서 xcode-select –install 을 사용하여 Xcode 명령줄 도구를 직접 설치하거나 Homebrew를 사용하여 패키지로 설치할 수 있습니다. Qt 소스는 리포지토리를 복제하거나 소스 패키지를 다운로드하여 얻을 수 있습니다.

그런 다음 Qt를 구성하고 빌드할 수 있습니다. 이 작업은 Qt 최상위 디렉토리에서 수행됩니다:

> ./configure -platform macx-ios-clang -release -qt-host-path <path_to_host_qt_installation>

참고: 구성은 항상 ninja 실행 파일을 사용할 수 있는 경우 Ninja 생성기 및 빌드 도구를 사용합니다. Ninja는 크로스 플랫폼이며 기능이 풍부하고 성능이 뛰어나며 모든 플랫폼에서 권장됩니다. 다른 생성기를 사용할 수도 있지만 공식적으로 지원되지는 않습니다.

다른 구성 옵션은 Qt 구성 옵션을 참조하세요.

그런 다음 cmake --build . --parallel 을 실행하세요.

참고: 기본 빌드에는 시뮬레이터와 디바이스 라이브러리가 모두 포함됩니다. 단일 대상에 대해 빌드하려면 iphoneos 또는 iphonesimulator 과 함께 -sdk 인수를 사용하십시오.

© 2025 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.