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. How to select iOS Simulator device?
Forum Updated to NodeBB v4.3 + New Features

How to select iOS Simulator device?

Scheduled Pinned Locked Moved Mobile and Embedded
iosqt5
6 Posts 3 Posters 4.5k 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.
  • M Offline
    M Offline
    m_andrej
    wrote on 23 May 2015, 09:13 last edited by m_andrej
    #1

    I need my app to look good on iPhone 5, but iOS Simulator is starting as iPhone 6 and I can't change this. In Simulator I can go to Hardware/Device/iPhone 5 but my app terminates and next time it starts again as iPhone 6.

    I found the following on http://doc.qt.io/qtcreator/creator-developing-ios.html#testing-on-ios-simulator:
    "You can change the simulated hardware and software version in the run settings for the project. Select Projects > Run, and then select the device to simulate in the Device type field."
    However there's no such field Device type in Project's run settings. Any ideas?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      m_andrej
      wrote on 25 May 2015, 09:54 last edited by
      #2

      I found a workaround: in Simulator menu go to Hardware - Device - Manage Devices and remove phones you don't want. Afterwards you get iPhone 4S or similar.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DRoscoe
        wrote on 26 May 2015, 04:03 last edited by
        #3

        In the upper left of the screen, next to the "play" button, you see the current scheme. Right next to it is the target device list. Click it to expand it and select your target platform. If you don't see what you want, you may need to go to xCode preferences and download older SDK's

        M 1 Reply Last reply 26 May 2015, 13:26
        0
        • D DRoscoe
          26 May 2015, 04:03

          In the upper left of the screen, next to the "play" button, you see the current scheme. Right next to it is the target device list. Click it to expand it and select your target platform. If you don't see what you want, you may need to go to xCode preferences and download older SDK's

          M Offline
          M Offline
          m_andrej
          wrote on 26 May 2015, 13:26 last edited by m_andrej
          #4

          @DRoscoe You are probably talking about Play button in XCode. Unfortunately, this setting has no effect on launching apps from Qt Creator. I can switch the device in Xcode to iPhone 5, but apps started from Qt Creator will still launch in iOS Simulator running as iPhone 6 (unless it's deleted as mentioned above).

          D 1 Reply Last reply 26 May 2015, 14:04
          0
          • M m_andrej
            26 May 2015, 13:26

            @DRoscoe You are probably talking about Play button in XCode. Unfortunately, this setting has no effect on launching apps from Qt Creator. I can switch the device in Xcode to iPhone 5, but apps started from Qt Creator will still launch in iOS Simulator running as iPhone 6 (unless it's deleted as mentioned above).

            D Offline
            D Offline
            DRoscoe
            wrote on 26 May 2015, 14:04 last edited by
            #5

            @m_andrej My misunderstanding. It is my experience that Qt Creator does not do a very good job with iOS builds. My greatest success has been with using qmake to generate the xCode project files and then working from there. The command line to do this is:

            qmake -spec macx-xcode -recursive

            The -recursive flag may not be needed in your case.

            1 Reply Last reply
            0
            • C Offline
              C Offline
              cybercatalyst
              wrote on 26 May 2015, 19:01 last edited by cybercatalyst
              #6

              We wondered about this too, and the solution is the QtCreator has its own device chooser dropdown. Open QtCreator and on the bottom left where you select the target, you have a dropdown where you can select the iOS device.

              -- oops, sorry, misread the question.

              1 Reply Last reply
              0

              1/6

              23 May 2015, 09:13

              • Login

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