From c8443cdedf2b34f84994f85564b7af4d789abbc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20H=C3=B6her?= Date: Wed, 7 Apr 2021 09:01:16 +0200 Subject: [PATCH] Allow specifying additional arguments for xcodebuild for the export archive step + README fixes (#21) * Allow extra flags to xcodebuild building IPA This change allows the user to set the QT_IOS_EXPORT_ARCHIVE_XCODEBUILD_FLAGS variable in cmake. The content of this variable is passed through to the xcodebuild when exporting the IPA file. * Fix: Wrong option name in README --- AddQtIosApp.cmake | 1 + README.md | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/AddQtIosApp.cmake b/AddQtIosApp.cmake index 4420da3..c79cf00 100644 --- a/AddQtIosApp.cmake +++ b/AddQtIosApp.cmake @@ -600,6 +600,7 @@ function(add_qt_ios_app TARGET) -archivePath ${QT_IOS_TARGET_ARCHIVE_PATH} -exportOptionsPlist ${QT_IOS_EXPORT_OPTIONS_FILE} -exportPath ${QT_IOS_TARGET_IPA_PATH} + ${QT_IOS_EXPORT_ARCHIVE_XCODEBUILD_FLAGS} ) endif() diff --git a/README.md b/README.md index e176971..b79e667 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,7 @@ To sign your app you need at least a team id and a signing identity. I recommand * `QT_IOS_TEAM_ID`: Same as `TEAM_ID` option, can be useful to specify at configure time, not in source code. * `QT_IOS_CODE_SIGN_IDENTITY`: Same as `CODE_SIGN_IDENTITY` option, can be useful to specify at configure time, not in source code. * `QT_IOS_PROVISIONING_PROFILE_SPECIFIER`: Same as `PROVISIONING_PROFILE_SPECIFIER` option, can be useful to specify at configure time, not in source code. +* `QT_IOS_EXPORT_ARCHIVE_XCODEBUILD_FLAGS`: Allows to specify additional flags that are passed to `xcodebuild` when creating the IPA file. Then you can simply build your app: @@ -132,7 +133,7 @@ add_qt_ios_app(MyApp CATALOG_APPICON "AppIcon" CATALOG_LAUNCHIMAGE "LaunchImage" ORIENTATION_PORTRAIT - ORIENTATION_PORTRAIT_UPSIDEDOWN + ORIENTATION_PORTRAIT_UPDOWN ORIENTATION_LANDSCAPE_LEFT ORIENTATION_LANDSCAPE_RIGHT PHOTO_LIBRARY_USAGE_DESCRIPTION "My App needs to access your photo library." @@ -383,7 +384,7 @@ Set the Main Storyboard of your app. The file will also be bundled. The default allowed orientation can be set with flags: * `ORIENTATION_PORTRAIT`: Set *UIInterfaceOrientationPortrait* flag. -* `ORIENTATION_PORTRAIT_UPSIDEDOWN`: Set *UIInterfaceOrientationPortraitUpSideDown* flag. +* `ORIENTATION_PORTRAIT_UPDOWN`: Set *UIInterfaceOrientationPortraitUpSideDown* flag. * `ORIENTATION_LANDSCAPE_LEFT`: Set *UIInterfaceOrientationLandscapeLeft* flag. * `ORIENTATION_LANDSCAPE_RIGHT`: Set *UIInterfaceOrientationLandscapeRight* flag.