Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt 5.12.10 build shared library from source for iOS
Qt 6.11 is out! See what's new in the release blog

Qt 5.12.10 build shared library from source for iOS

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 547 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
    SteveMI
    wrote on last edited by SteveMI
    #1

    Hi,
    I am trying to build Qt for iOS as shared library and I have a code signing error.
    More precisely, I downloaded sources of Qt 5.12.10, I have Mac OS Catalina 10.15.7, Xcode 12.3.

    I configure Qt with the following command:

    ./configure -prefix ../iosSharedR -shared -opensource -release -optimize-size -nomake examples -nomake tests -xplatform macx-ios-clang -sdk iphoneos -qt-zlib -qt-libpng
    

    Then I build with make and get the error:

    === BUILD TARGET qmltime OF PROJECT qmltime WITH CONFIGURATION Release ===
    Check dependencies
    
    Code Signing Error: No profiles for 'com.example.pollyenabler.qmltime' were found:  Xcode couldn't find any iOS App Development provisioning profiles matching 'com.example.pollyenabler.qmltime'. Automatic signing is disabled and unable to generate a profile. To enable automatic signing, pass -allowProvisioningUpdates to xcodebuild.
    
    Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 14.3'
    
    ** BUILD FAILED **
    
    The following build commands failed:
    
    Check dependencies
    (1 failure)
    make[3]: *** [xcodebuild-release-device] Error 65
    make[2]: *** [sub-qmltime-make_first] Error 2
    make[1]: *** [sub-tools-make_first] Error 2
    make: *** [module-qtdeclarative-make_first] Error 2
    

    I tried adding this in qt.pro file:

    ios:{
      QMAKE_DEVELOPMENT_TEAM = ...
      QMAKE_PROVISIONING_PROFILE = ...
      QMAKE_XCODE_CODE_SIGN_IDENTITY = ...
    }
    

    but still have the same error.
    Same with:

    ios:{
      QMAKE_CXXFLAGS += -allowProvisioningUpdates
    }
    

    So how to build Qt from sources for iOS? Which options do I have to set to fix this signing error?
    Thanks

    EDIT:
    I found and follow that
    https://bugreports.qt.io/browse/QTBUG-75457

    and I have the same error:

    Undefined symbols for architecture arm64: 
      "lcEventDispatcher()", referenced from: 
    ...
    

    And I use source from Qt5.12.10, so apparently not solved.

    Did anyone succeed to build Qt shared libraries for iOS?
    Until some times ago, it was not possible to use dynamic libs on iOS so maybe it was not a problem not to have them for Qt iOS, but Apple changed that.

    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