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. Uh, wth? I'm building for iOS, I do NOT have the simulator kit configured...
Forum Updated to NodeBB v4.3 + New Features

Uh, wth? I'm building for iOS, I do NOT have the simulator kit configured...

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 379 Views 1 Watching
  • 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.
  • C Offline
    C Offline
    chopper
    wrote on last edited by
    #1

    But qmake is apparently generating:

    ####### Custom Variables
    EXPORT_VALID_ARCHS = arm64 x86_64
    

    and

    EXPORT_QMAKE_XARCH_CFLAGS_x86_64 = -Xarch_x86_64 -mios-simulator-version-min=10.0 -Xarch_x86_64 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk
    EXPORT_QMAKE_XARCH_LFLAGS_x86_64 = -Xarch_x86_64 -mios-simulator-version-min=10.0 -Xarch_x86_64 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk
    

    This leads to the following linker error (unsurprisingly):

    ld: symbol(s) not found for architecture x86_64
    

    This is on Qt 5.11.1 and I'm linking in a static lib I built for arm64 (and intentionally did not build for x86_64.)

    I know I'm linking the correct iOS library because if I comment out the LIBS+= entry in my PRO file I get the expected error for the expected architecture:

    ld: symbol(s) not found for architecture arm64
    

    What gives? Why is qmake creaking a makefile that sets flags for the simulator and results in an attempt to link for the simulator...?

    Thx

    1 Reply Last reply
    0

    • Login

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