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

Disable bitcode for iOS project

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
ios
7 Posts 4 Posters 4.8k 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.
  • D Offline
    D Offline
    DRoscoe
    wrote on 18 Jul 2016, 18:20 last edited by
    #1

    When I build my project from Qt Creator, I see the following errors:

    ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES)
    ld: -u and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together
    

    When I run Qmake from the command line and load the Xcode project, I disable bitcode for the target. How can I do this from my qmake scripts so its disabled for QT Creator?

    Thanks!
    -Dave

    1 Reply Last reply
    1
    • D Offline
      D Offline
      DRoscoe
      wrote on 21 Jul 2016, 13:47 last edited by
      #2

      Anyone? I'm just trying to build the device version of my app through Qt Creator, but some of my third-party libraries don't play nicely with bitcode, so I need to disable it. I can do it easily enough through Xcode, but I don't want to add that step in my workflow if I can avoid it.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 21 Jul 2016, 21:47 last edited by
        #3

        Hi,

        Not sure about it but try to add CONFIG -= bitcode to your .pro file

        Hope it helps

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

        D 1 Reply Last reply 25 Jul 2016, 16:34
        1
        • S SGaist
          21 Jul 2016, 21:47

          Hi,

          Not sure about it but try to add CONFIG -= bitcode to your .pro file

          Hope it helps

          D Offline
          D Offline
          DRoscoe
          wrote on 25 Jul 2016, 16:34 last edited by
          #4

          @SGaist unfortunately, that did not work.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 25 Jul 2016, 20:59 last edited by
            #5

            Then you can take a shot at fiddling with the bitcode.prf

            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
            • S Offline
              S Offline
              Shiba
              wrote on 26 Oct 2017, 14:15 last edited by
              #6

              This question is from a pretty long time ago, but I also ran into the issue (so I guess it's still relevant). There's also different solution that's not system wide. You can do the following:

              • Navigate to the "Projects" tab
              • Navigate to your Kit (e.g QT 5.9.1 for iOS) and Build variant (e.g. Debug)
              • Under "Build Steps" click on the "Add Build Step" button and add "xcodebuild"
              • Add "ENABLE_BITCODE=NO" without the quotation marks behind the command in the "Base arguments" textfield.
              • Disable the make step

              As an example:
              0_1509027285429_example.png

              1 Reply Last reply
              5
              • S Offline
                S Offline
                scartezini
                wrote on 6 Nov 2019, 21:22 last edited by
                #7

                @Shiba 's response worked, but for each compile you need do that.
                So can put this on <project>.pro to set ENABLE_BITCODE=NO, and it will work every.

                Q_ENABLE_BITCODE.name = ENABLE_BITCODE
                Q_ENABLE_BITCODE.value = NO
                QMAKE_MAC_XCODE_SETTINGS += Q_ENABLE_BITCODE
                
                1 Reply Last reply
                3

                • Login

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