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

iOS and WatchOS Bitcode enabled?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
ioswatchos
5 Posts 3 Posters 2.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
    kolegs
    wrote on 8 Aug 2016, 11:48 last edited by A Former User
    #1

    Hi,

    I got an application that runs on iOS no problem. Now I need to add also WatchOS application the problem is that it requires bitcode enable set to "YES".

    Is it possible to enable this using Qt? I tried to recompile whole Qt as suggested here but I still get an error

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

    when I try to compile my project

    Any suggestions?

    Thanks in advance

    EDIT: I removed some linker flags to check if that helps. And I found out that my libraries does not contain bitcode. Anyone knows how to compile Qt with bitcode flag enabled?

    ld:  '/usr/local/Qt-5.7.1/lib/libQt5Core.a(qobject.o)' does not contain bitcode. You ,must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this targer. for architecture arm64
    
    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 8 Aug 2016, 21:36 last edited by
      #2

      Hi,

      There's a patch about adding support for watchOS but it hasn't been yet integrated. You can find it here

      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

      1 Reply Last reply
      1
      • K Offline
        K Offline
        kolegs
        wrote on 9 Aug 2016, 07:37 last edited by kolegs 8 Sept 2016, 09:05
        #3

        Thanks for fast answer, I just found out that tvos uses bitcode and looked into their mkspecs. Added bitcode support and I am compiling Qt right now. Let's hope it will work :D
        Also let's hope this watchOS support will be included in Qt5.8

        EDIT: After compiling the Qt with bitcode flags my application can compile. The problem is only with qmake changin the settings every time. But I created script which does evertything needed to change for me. Also some linker parameters were incorrect so I removed them.
        After all of this I can finally run watchOS application(objective-c) with Qt application on ios.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 9 Aug 2016, 21:02 last edited by
          #4

          Feature freeze being almost there, you should ping the developers on e.g. the #qt irc channel or the interest mailing list

          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
          • M Offline
            M Offline
            michaelL
            wrote on 28 Nov 2016, 16:55 last edited by
            #5

            @kolegs I am having the same error if i try to deploy the application via Xcode to my iphone. I am using Qt5.8 and it should have watchOS support on it.
            Which files did you changed? Could you tell me their names?

            Thanks,

            Michael

            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