Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. 5.11.1 iOS Bundle Identifier problems

5.11.1 iOS Bundle Identifier problems

Scheduled Pinned Locked Moved Solved Mobile and Embedded
iosbuildqt 5.11.1
9 Posts 3 Posters 3.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ekkescornerE Offline
    ekkescornerE Offline
    ekkescorner
    Qt Champions 2016
    wrote on last edited by
    #1

    As I started with Qt mobile iOS Apps I hardcoded the bundle identifier in
    info.plist:

        <key>CFBundleIdentifier</key>
        <string>org.ekkescorner.c2g.qtws</string>
    

    Later (don't remember the Qt version) the hard coded way doesn't work anymore.
    with some help by @jakepetroules I had to change into this
    info.plist:

        <key>CFBundleIdentifier</key>
        <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
    

    and added to my .pro:

    ios {
        ....
        MY_BUNDLE_ID.name = PRODUCT_BUNDLE_IDENTIFIER
        MY_BUNDLE_ID.value = org.ekkescorner.c2g.qtws
        QMAKE_MAC_XCODE_SETTINGS += MY_BUNDLE_ID
        ....
    }
    

    now with Qt 5.11.1 this is broken.
    see discussions at QtMob and also QTBUG-70072

    anyone has found a solution / workaround ?

    after each build manually changing the build settings in XCode isn't really cool ;-)

    ekke ... Qt Champion 2016 | 2024 ... mobile business apps
    5.15 --> 6.8 https://t1p.de/ekkeChecklist
    QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

    1 Reply Last reply
    0
    • P Offline
      P Offline
      paulmasri
      wrote on last edited by
      #2

      This has been confirmed as "likely" to be a bug in Qt 5.11.1 and there is a fix scheduled for Qt 5.11.2. There is also a workaround for Qt 5.11.1.

      Full details here (within the QTBUG-70072 comments)

      ekkescornerE 1 Reply Last reply
      2
      • P paulmasri

        This has been confirmed as "likely" to be a bug in Qt 5.11.1 and there is a fix scheduled for Qt 5.11.2. There is also a workaround for Qt 5.11.1.

        Full details here (within the QTBUG-70072 comments)

        ekkescornerE Offline
        ekkescornerE Offline
        ekkescorner
        Qt Champions 2016
        wrote on last edited by
        #3

        @paulmasri for me the bug still exists in 5.11.2 and 5.12 Beta1
        but the workaround is working :)

        ekke ... Qt Champion 2016 | 2024 ... mobile business apps
        5.15 --> 6.8 https://t1p.de/ekkeChecklist
        QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

        ekkescornerE 1 Reply Last reply
        0
        • ekkescornerE ekkescorner

          @paulmasri for me the bug still exists in 5.11.2 and 5.12 Beta1
          but the workaround is working :)

          ekkescornerE Offline
          ekkescornerE Offline
          ekkescorner
          Qt Champions 2016
          wrote on last edited by
          #4

          @ekkescorner after some discussions with Andy Shaw https://bugreports.qt.io/browse/QTBUG-70072
          here's the recommended way to get the correct bundle identifier:

          QMAKE_TARGET_BUNDLE_PREFIX = org.ekkescorner
          QMAKE_BUNDLE = c2g.qtws
          

          this will create the bundle identifier org.ekkescorner.c2g.qtws
          no workaround needed anymore

          ekke ... Qt Champion 2016 | 2024 ... mobile business apps
          5.15 --> 6.8 https://t1p.de/ekkeChecklist
          QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

          1 Reply Last reply
          2
          • StokestackS Offline
            StokestackS Offline
            Stokestack
            wrote on last edited by Stokestack
            #5

            Just tried this and, unfortunately, it doesn't work. It has no effect on the generated bundle ID in my project. Qt Creator 4.8.1.

            ekkescornerE 1 Reply Last reply
            0
            • StokestackS Stokestack

              Just tried this and, unfortunately, it doesn't work. It has no effect on the generated bundle ID in my project. Qt Creator 4.8.1.

              ekkescornerE Offline
              ekkescornerE Offline
              ekkescorner
              Qt Champions 2016
              wrote on last edited by
              #6

              @Stokestack doing this in all my Qt 5.12.1 projects with QtC 4.8.1 without any problems
              in my info.plist:

              	<key>CFBundleIdentifier</key>
              	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
              

              ekke ... Qt Champion 2016 | 2024 ... mobile business apps
              5.15 --> 6.8 https://t1p.de/ekkeChecklist
              QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

              StokestackS 1 Reply Last reply
              0
              • ekkescornerE ekkescorner

                @Stokestack doing this in all my Qt 5.12.1 projects with QtC 4.8.1 without any problems
                in my info.plist:

                	<key>CFBundleIdentifier</key>
                	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
                
                StokestackS Offline
                StokestackS Offline
                Stokestack
                wrote on last edited by
                #7

                @ekkescorner Thanks for the reply. Where are you adding those values? If these are build settings, where do the = come in?

                ekkescornerE 1 Reply Last reply
                0
                • StokestackS Stokestack

                  @ekkescorner Thanks for the reply. Where are you adding those values? If these are build settings, where do the = come in?

                  ekkescornerE Offline
                  ekkescornerE Offline
                  ekkescorner
                  Qt Champions 2016
                  wrote on last edited by
                  #8

                  @Stokestack copy your info.plist from generated Xcode project into to your project and tell QtC where it is

                  ios {
                      QMAKE_INFO_PLIST = ios/Info.plist
                  }
                  

                  then change / add what you want

                  ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                  5.15 --> 6.8 https://t1p.de/ekkeChecklist
                  QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                  StokestackS 1 Reply Last reply
                  1
                  • ekkescornerE ekkescorner

                    @Stokestack copy your info.plist from generated Xcode project into to your project and tell QtC where it is

                    ios {
                        QMAKE_INFO_PLIST = ios/Info.plist
                    }
                    

                    then change / add what you want

                    StokestackS Offline
                    StokestackS Offline
                    Stokestack
                    wrote on last edited by
                    #9

                    @ekkescorner Oh, OK, thanks.

                    I thought we could put this in the build settings:

                    QMAKE_TARGET_BUNDLE_PREFIX = org.ekkescorner
                    QMAKE_BUNDLE = c2g.qtws

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved