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. Building and running a project with subdirs for iOS Simulator
Forum Updated to NodeBB v4.3 + New Features

Building and running a project with subdirs for iOS Simulator

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 938 Views 2 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.
  • X Offline
    X Offline
    XobD
    wrote on last edited by
    #1

    Hello,

    I'm having issues building a project targeting the iOS Simulator. To reproduce, I created the simplest project possible which contains 1 main app (template app) + 1 lib (template lib). Link here.

    Using Qt Creator 4.2.1 + Qt 5.7.1 iphonesimulator-clang++, I can't build and run the app for the iOS Simulator. Qt will keep specifying iPhoneOS sysroot with architectures armv7/arm64 for the library and then, the app won't be able to link to it because it's missing the i386/x86_64 archs obviously.

    Any ideas?
    Thanks!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      abader
      wrote on last edited by
      #2

      I don't have an answer for you, but I am running into the same problem. Your sample project has been a great help as I try to play around with the mkspecs to get things working. I was using 5.6.2, I just installed 5.8.0 to see if there's been any change.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        abader
        wrote on last edited by
        #3

        To update, using 5.8.0 I was able to successfully get your program to link and run in the simulator.

        Note that I did have to add

        LIBS += ../testlib/testlib.o

        to your testapp.pro

        X 1 Reply Last reply
        0
        • A abader

          To update, using 5.8.0 I was able to successfully get your program to link and run in the simulator.

          Note that I did have to add

          LIBS += ../testlib/testlib.o

          to your testapp.pro

          X Offline
          X Offline
          XobD
          wrote on last edited by
          #4

          @abader It was suggested to me by Qt staff (through a support request) to use LIBS += ... and somehow it worked only once. Andy from Qt guesses that I have some stray qmake cache files that I might have missed when clearing output.

          Thank you for the reply, glad to learn there's a solution besides having me group all source files into the same project just for iOS. The simulator is useful for testing and getting screen captures when submitting to the App Store.

          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