Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-32203

Signing does not work for ReleaseWithDebugInfo

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • Qt Creator 15.0.0
    • Android Support
    • None
    • Android

    Description

      Hello...

      when selecting build for Release with Debug Information, then in project under "Build Android APK" I select the keystore file, check Sign package, select Certificate alias, enter my password... then also select that I want to build App Bundle and build...

       

      it ONLY sign the apk file, and in console I see:

      APK already aligned, copying it for signing.
      Signed
      Signing Android package.
      Signing file C:/Qt/Projects/Builds/build-filmtoro-Android_Qt_6_8_1_Clang_arm64_v8a-RelWithDebInfo/android-build-filmtoroMobile//build/outputs/bundle/debug/android-build-filmtoroMobile-debug.aab
      jar signed.

      however outputs/bundle/release/android-build-filmtoroMobile-delease.aab stays unsigned (confirmed when uploading to Google Play Store)

       

      Also very funny is that im having warning "Signing a debug package", which I dont want... i want to sign the release.aab:

      However when uplading standard "release" build to Google Play, it gives me warning that package does not contain debug informations... so this is why i want to build "Release with Debug Informations"... then google does not complain about debug info, however it complain that this aab is not signed, because QT obviously does not sign it (it signs only *-debug.aab)

      Also thi apk generated file is only for debug, it does not create apk for release...

      so why "Release with Debug Information" is considered ad Debug version and not Release by QT?

       

      how do I use [QT_ANDROID_SIGN_AAB | Qt Core 6.8.1|https://doc.qt.io/qt-6/cmake-variable-qt-android-sign-aab.html]

      in whole google there is no single example for cmake... if it will even help in case of Release with Debug Info to sign *-release.aab

       

      UPDATE: when building only for "release", then it signs properly:

      APK already aligned, copying it for signing.
      Signed
      Signing Android package.
      Signing file C:/Qt/Projects/Builds/build-filmtoro-Android_Qt_6_8_1_Clang_arm64_v8a-Release/android-build-filmtoroMobile//build/outputs/bundle/release/android-build-filmtoroMobile-release.aab
      jar signed.

      however Google Play screams that I am uploading bundle without debug informations...

      + QT creator does not complain with warning "Signing a debug package" when building for "release"

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            soarmin Soheil Armin
            shokarta Jiri Zaloudek
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes