Qt 5.12.10 build shared library from source for iOS
-
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-libpngThen 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 2I 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?
ThanksEDIT:
I found and follow that
https://bugreports.qt.io/browse/QTBUG-75457and 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.