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. Bitcode for iOS ?
Forum Updated to NodeBB v4.3 + New Features

Bitcode for iOS ?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
9 Posts 2 Posters 4.0k Views 2 Watching
  • 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.
  • K Offline
    K Offline
    k.gaitanis
    wrote on last edited by
    #1

    I have an app for iOS distributed via the AppStore. I would like to benefit from the advantages of including bitcode in my bundle. Is that possible ? Currently when I try to compile my app with Xcode and bitcode enabled I get the following error :

    ld: -u and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
    

    Is this Qt related or am I doing something wrong?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What version of Qt are you using ?

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

      K 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What version of Qt are you using ?

        K Offline
        K Offline
        k.gaitanis
        wrote on last edited by
        #3

        @SGaist Qt 5.6 installed using the online installer

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          From what I found, currently bitcode is disabled to support deployment target under iOS 6.0

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

          1 Reply Last reply
          0
          • K Offline
            K Offline
            k.gaitanis
            wrote on last edited by k.gaitanis
            #5

            And if we only want to support iOS 8.1 and higher? Would it be possible to enable it?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              You'll have to modify and recompile qmake for that.

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

              1 Reply Last reply
              0
              • K Offline
                K Offline
                k.gaitanis
                wrote on last edited by
                #7

                Modify what in qmake?

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Take a look at pbuilder_pbx.cpp around line 1409

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

                  1 Reply Last reply
                  1
                  • K Offline
                    K Offline
                    k.gaitanis
                    wrote on last edited by
                    #9

                    Found this at line 1425 of qtbase-5.6.0/qmake/generators/mac/pbuilder_pbx.cpp:

                            // Bitcode is only supported with a deployment target >= iOS 6.0.
                            // Disable it for now, and consider switching it on when later
                            // bumping the deployment target.
                            settings.insert("ENABLE_BITCODE", "NO");
                            settings.insert("GCC_GENERATE_DEBUGGING_SYMBOLS", as_release ? "NO" : "YES");
                    

                    This seems like it would solve my problem. It also seems to answer to my other post concerning DSym files (iOS: DSym not uploaded to the AppStore).

                    I don't have time to test right now, but I'll definitively give it a try soon and report back.

                    Thanks SGaist

                    1 Reply Last reply
                    1

                    • Login

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