Skip to content

Commit

Permalink
Allow specifying additional arguments for xcodebuild for the export a…
Browse files Browse the repository at this point in the history
…rchive 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
  • Loading branch information
mhoeher authored Apr 7, 2021
1 parent d187704 commit c8443cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions AddQtIosApp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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."
Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit c8443cd

Please sign in to comment.