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

  • Hello again,

    well I found a solution thanks to another thread
    I now set
    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


Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.