Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt on iOS



  • How do I use Qt Libraries as dynamic for iOS ? What is definations in *.pro file ?


  • Moderators

    @VeNToR Can we see your pro file? It's all in how you built Qt. It should link dynamically by default unless you specifically linked statically.



  • @ambershark cache()

    TEMPLATE = app

    CONFIG += debug_and_release

    QT += core gui multimedia script widgets xmlpatterns sql concurrent

    	ios {
    		CONFIG			-= bitcode
    
    		DESTDIR			=	/tmp/Projects/IOS/Debug
    		MOC_DIR			=	./GeneratedFiles/IOS/Debug
    		OBJECTS_DIR		=	/tmp/Projects/IOS/Debug/Intermediate/ChQuPhone
    		RCC_DIR			=	./GeneratedFiles/IOS
    		UI_DIR			=	./GeneratedFiles/IOS
    
    		#CONFIG			-= headerpad_max_install_names
    
    		FORMS			=	./Resources/ChForms/ChQuPhone.ui
    
    		QMAKE_LFLAGS	+=	-stdlib=libc++ 
    
    		#QMAKE_LFLAGS	+=	#-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks \
    		#QMAKE_LFLAGS	+=	-F/Projects/PortSIP/IOS
    		QMAKE_IOS_DEPLOYMENT_TARGET	= 10.2
    						
    		LIBS			+=	$$DESTDIR/libChFCd.a \
    							$$DESTDIR/libChPhoned.a \
    							$$DESTDIR/libChRSMd.a \
    							$$DESTDIR/libChQuGUIFCd.a \
    							$$DESTDIR/libChRSMSecurityd.a \
    							$$DESTDIR/libChRSMSessiond.a \
    							$$DESTDIR/libChScriptd.a \
    							\
    							$$DESTDIR/libChQuGUIScriptPlugind.a \
    							$$DESTDIR/libChRSMGUIFCd.a \
    							$$DESTDIR/libChQuScriptManagerd.a
    

    }



  • I think, Qt should re-compile as shared library or framework for iOS.


  • Lifetime Qt Champion

    Hi,

    @ambershark The iOS Qt build is/was static.

    Up until recently that was not an option since the App Store rules expressly forbad dynamic libraries within an application. The rules have change and IIRC, if not 5.8 then 5.9 is built as shared frameworks.



  • @SGaist We should wait :)


  • Moderators

    @SGaist said in Qt on iOS:

    Hi,

    @ambershark The iOS Qt build is/was static.

    Up until recently that was not an option since the App Store rules expressly forbad dynamic libraries within an application. The rules have change and IIRC, if not 5.8 then 5.9 is built as shared frameworks.

    Oops, I totally forgot about this. I'm so used to doing desktop stuff I completely forgot about the iOS static library thing. Glad you caught it before I wasted time trying to figure that out, lol. :)


Log in to reply