Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Static lib for iOS missing architecture
Manfred last edited by A Former User
I have created a static lib for iOS and a simple app, both with the exact same kit and settings.
But when I try to link the lib to the app, it tells me that it ignores the lib because its was built for archive which is not the architecture being linked to.
I tried to figure out what the architecture was with:
lipo -info libMyLib.a
but I get the answer :
"lipo: archive with no architecture specification : libMyLib.a (can't determine architecture for it)"
Can someone please help me?
many thanks in advance,
Manfred last edited by
well I found a solution thanks to another thread
I now set
QMAKE_IOS_DEVICE_ARCHS = armv7
in the .pro files of the library and the application.
here's the link of the other thread :
Linking to static libraries with correct architecture when building in xcode