Publishing iOS QT app in Apple App Store

I downloaded provisioning profiles with XCode:

File xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx.mobileprovision appeared in ~/Library/MobileDevice/Provisioning\ Profiles folder and the command:

/usr/bin/env xcrun security find-identity -v -p codesigning

printed three sign identities:

Added the following into my CMake:

    set(APP_BUNDLE_IDENTIFIER "com.mydomain.myapp")
    set(PROVISIONING_PROFILE_NAME "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx")
    set_target_properties(${PROJECT_NAME} PROPERTIES

and tried to build my app from the command line with the following command having Qt_6_7_0_iOS_Release as a current directory:

"/opt/local/bin/cmake" --build . --target ALL_BUILD --config RelWithDebInfo -- -allowProvisioningUpdates

but got errSecInternalComponent signing error:

    /usr/bin/codesign --force --sign 7062E8DFCE48EAC4BEBD580F63FF6549AE83E9B0 --entitlements /Users/admin/dev/repos/examples/src/MyApp/MyAppQt/build/Qt_6_7_0_iOS_Release/build/ --timestamp\=none --generate-entitlement-der /Users/admin/dev/repos/examples/src/MyApp/MyAppQt/build/Qt_6_7_0_iOS_Release/RelWithDebInfo-iphoneos/
/Users/admin/dev/repos/examples/src/MyApp/MyAppQt/build/Qt_6_7_0_iOS_Release/RelWithDebInfo-iphoneos/ errSecInternalComponent
Command CodeSign failed with a nonzero exit code

Then I tried to build the with XCode and it asked a password during build:

and successfully built the app.

Then I clicked Product->Archive, XCode built the app and the archive appeared in the Archives organizer:

When I tried to upload my app for a Test Flight I got the following validation errors:

Asset validation failed
Invalid bundle. The “UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown” orientations were provided for the UISupportedInterfaceOrientations Info.plist key in the com.mydomain.myapp bundle, but you need to include all of the “UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight” orientations to support iPad multitasking. For details, visit: (ID: e0f42229-9b79-4e1a-8e0d-9835af9097e2)

Asset validation failed
Invalid large app icon. The large app icon in the asset catalog in “” can’t be transparent or contain an alpha channel. For details, visit: (ID: 9e5bc503-b4dd-4474-b497-d578a463928f)

I added the orientations to


Created opaque icons and was able to upload the app for the Test Flight:

But got the following error from Apple Connect:

ITMS-90683: Missing purpose string in Info.plist – Your app’s code references one or more APIs that access sensitive user data, or the app has one or more entitlements that permit such access. The Info.plist file for the “Classic” bundle should contain a NSCameraUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. If you’re using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. For details, visit:

To fix I added the following to Info.plist:

<string>Actually my app does not use Camera, but probably QT multimedia module requires it. Ideally I need to get rid of it in future versions.</string>

2 Responses to Publishing iOS QT app in Apple App Store

Leave a Reply

Your email address will not be published. Required fields are marked *