Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How do you change the app bundle identifier that Qt puts in the Xcode file?
QtWS25 Last Chance

How do you change the app bundle identifier that Qt puts in the Xcode file?

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 3 Posters 2.0k 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.
  • S Offline
    S Offline
    Stokestack
    wrote on 4 Mar 2019, 08:54 last edited by Stokestack 3 Apr 2019, 09:21
    #1

    Hi all. I can't run my app on my phone from Qt Creator because Xcode whines:

    Code Signing Error: No profiles for 'com.myname.gallery-mobile'

    Which is what Qt put in the Xcode project file. If I open the project in Xcode and put a totally random bundle identifier for the target, like com.wallaby.funkymonkey, it builds fine. So... where do we change this?

    And then there's another thing. In the Xcode output, it says,

    To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.

    I found that you do this by adding the flag to the list under Project / Build Environment. But unfortunately that just changes the error message, but not its basic complaint:

    xcodebuild[62700:9920056] DVTPortal: Service '<DVTPortalAddAppIDService: 0x7fd469274f10; action='addAppId'>' encountered an unexpected result code from the portal ('9401')
    2019-03-04 01:06:38.084 xcodebuild[62700:9920056] DVTPortal: Error:
    Error Domain=DVTPortalServiceErrorDomain Code=9401 "An App ID with Identifier 'com.MyID.gallery-mobile' is not available. Please enter a different string."

    Thanks.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 4 Mar 2019, 10:18 last edited by
      #2

      Ekke has a solutuion for you: https://forum.qt.io/topic/93969/5-11-1-ios-bundle-identifier-problems/4

      (Z(:^

      S 1 Reply Last reply 5 Mar 2019, 02:30
      3
      • S sierdzio
        4 Mar 2019, 10:18

        Ekke has a solutuion for you: https://forum.qt.io/topic/93969/5-11-1-ios-bundle-identifier-problems/4

        S Offline
        S Offline
        Stokestack
        wrote on 5 Mar 2019, 02:30 last edited by Stokestack 3 May 2019, 02:30
        #3

        @sierdzio Great, thanks! It'll be nice if that works. I can't try it at the moment, though, because my app won't build thanks to the "missing Android SDK" bug and I don't know how to temporarily turn off Android builds.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 5 Mar 2019, 06:06 last edited by
          #4

          It does work, I've tried it myself recently.

          my app won't build thanks to the "missing Android SDK" bug and I don't know how to temporarily turn off Android builds.

          So you're building for macOS or iOS but Qt Creator complains about Android? Sounds like a bug, make sure you're using the newest Qt Creator.

          (Z(:^

          S 1 Reply Last reply 5 Mar 2019, 21:34
          0
          • S sierdzio
            5 Mar 2019, 06:06

            It does work, I've tried it myself recently.

            my app won't build thanks to the "missing Android SDK" bug and I don't know how to temporarily turn off Android builds.

            So you're building for macOS or iOS but Qt Creator complains about Android? Sounds like a bug, make sure you're using the newest Qt Creator.

            S Offline
            S Offline
            Stokestack
            wrote on 5 Mar 2019, 21:34 last edited by
            #5

            @sierdzio Thanks. I am using the latest Qt Creator and all other tools.

            My project is configured for everything except iOS Simulator. That's why it's also building for Android, even though I'm not using it right now.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 5 Mar 2019, 21:57 last edited by
              #6

              Hi,

              In that case disable the build for Android. Or if you want to also build for Android, then install the needed dependencies.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              S 1 Reply Last reply 5 Mar 2019, 22:23
              0
              • S SGaist
                5 Mar 2019, 21:57

                Hi,

                In that case disable the build for Android. Or if you want to also build for Android, then install the needed dependencies.

                S Offline
                S Offline
                Stokestack
                wrote on 5 Mar 2019, 22:23 last edited by
                #7

                @SGaist Thanks. How do you disable the build for a particular platform?

                Also: I have all the dependencies installed. The failure to detect the Android SDK is another known bug. Apparently it's related to Sun removing a Java component after years of warning that it was deprecated; I guess this was disregarded by the Android devs and now their SDK manager crashes on launch with an assertion about the now-missing Java component.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 5 Mar 2019, 22:39 last edited by
                  #8

                  Just realised something, how are you trigger that build failure ?

                  Qt Creator only build for one kit at a time and build type at a time.

                  As for Android, you might be using a "too new" version of Java then. The likely best approach is to revert to an older version.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  S 1 Reply Last reply 5 Mar 2019, 22:50
                  0
                  • S SGaist
                    5 Mar 2019, 22:39

                    Just realised something, how are you trigger that build failure ?

                    Qt Creator only build for one kit at a time and build type at a time.

                    As for Android, you might be using a "too new" version of Java then. The likely best approach is to revert to an older version.

                    S Offline
                    S Offline
                    Stokestack
                    wrote on 5 Mar 2019, 22:50 last edited by
                    #9

                    @SGaist Thanks. The IDE must have just defaulted to the Android build for some reason then.

                    1 Reply Last reply
                    0

                    8/9

                    5 Mar 2019, 22:39

                    • Login

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