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

Static lib for iOS missing architecture



  • Hi everybody,

    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,
    best regards
    Manfred



  • Hello again,

    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

    regards
    Manfred


Log in to reply