Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Static lib for iOS missing architecture
Forum Update on Monday, May 27th 2025

Static lib for iOS missing architecture

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 876 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Manfred
    wrote on last edited by A Former User
    #1

    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

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Manfred
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved