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 compile an iOS application in Qt?
Forum Updated to NodeBB v4.3 + New Features

How to compile an iOS application in Qt?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
64 Posts 11 Posters 24.3k 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.
  • M Mikeeeeee

    I see that. Where is the "Compiler" tab ?
    0_1558533081807_1.png

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #38

    @Mikeeeeee I'm talking about Compile tab in QtCreator, not XCode.

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mikeeeeee
      wrote on last edited by
      #39

      I showed hfyttscreen compilers. I don't have an iOS compiler.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #40

        Did you check your Xcode configuration to see if there's anything related to that ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Mikeeeeee
          wrote on last edited by
          #41

          How to do this?

          jsulmJ 1 Reply Last reply
          0
          • M Mikeeeeee

            How to do this?

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #42

            @Mikeeeeee You can open XCode and create a default app for iOS and see whether you can build it. I already suggested this before.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Mikeeeeee
              wrote on last edited by Mikeeeeee
              #43

              I told you I could do it. After running the project in Xcode, the iPhone emulator starts.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                Mikeeeeee
                wrote on last edited by
                #44

                How do I add a new iOS compiler from Xcode to Qt?

                L 1 Reply Last reply
                0
                • M Mikeeeeee

                  How do I add a new iOS compiler from Xcode to Qt?

                  L Offline
                  L Offline
                  Laszlo LG
                  wrote on last edited by
                  #45

                  Xcode manages the changes automatically so I don't know whether there were any config changes or installations when I first connected my developer iOS device with USB to the MacOS machine. As I remember Qt picked up the config from Xcode automatically as well. Each QT version has a list of supported devices. You should use that specific QT version which contains your phone's architecture in its supported platforms page.

                  Execute the following command from terminal to see whether you have the same compiler as me:
                  find /Applications/Xcode.app/Contents/Developer/Toolchains -name clang++

                  For me it lists:
                  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++

                  This same compiler is in use for both armv7 and x86_64, which is specified with the flag "-arch armv7" or "-arch x86_64".

                  1 Reply Last reply
                  1
                  • M Offline
                    M Offline
                    Mikeeeeee
                    wrote on last edited by
                    #46

                    Is there only one file in the Toolchain folder? Should be different?
                    0_1558615172322_1.png

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      Mikeeeeee
                      wrote on last edited by
                      #47

                      But the platforms have a Clang folder for each platform

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #48

                        Because clang is used for all platforms.

                        How did you install Xcode ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          Mikeeeeee
                          wrote on last edited by
                          #49

                          I installed from a virtual disk. If I write the path of the compiler to Clang, will it work?

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            Mikeeeeee
                            wrote on last edited by
                            #50
                            This post is deleted!
                            1 Reply Last reply
                            0
                            • M Offline
                              M Offline
                              Mikeeeeee
                              wrote on last edited by
                              #51

                              Maybe this version of Qt does not work, I need to install another version?

                              1 Reply Last reply
                              0
                              • SGaistS Offline
                                SGaistS Offline
                                SGaist
                                Lifetime Qt Champion
                                wrote on last edited by
                                #52

                                How did you install Xcode ?

                                Since your configuration seems to be broken, I'd go with a full removal and new installation of the Qt SDK. Only install Qt for macOS and Qt for iOS.

                                Interested in AI ? www.idiap.ch
                                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  Mikeeeeee
                                  wrote on last edited by
                                  #53

                                  Reinstalled. Works compiler emulator ios. The IOS compiler does not work. Compiled a project for the IOS emulator. What to do next? What files can I use on ios? Or I need something else to do with .xcodeproj file?

                                  1 Reply Last reply
                                  0
                                  • SGaistS Offline
                                    SGaistS Offline
                                    SGaist
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #54

                                    Then the first you have to do is to build a dummy project within Xcode and make it run on your device. There's no use trying to setup Qt if Xcode doesn't work properly in the first place.

                                    And again, how did you install Xcode ? What exact version is it ?

                                    Interested in AI ? www.idiap.ch
                                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      Mikeeeeee
                                      wrote on last edited by
                                      #55

                                      Xcode10.1
                                      I checked, Xcode works.

                                      1 Reply Last reply
                                      0
                                      • SGaistS Offline
                                        SGaistS Offline
                                        SGaist
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #56

                                        "Xcode works" is a bit light on information. Did you successfully build and start an application on your device ?

                                        Interested in AI ? www.idiap.ch
                                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        1 Reply Last reply
                                        0
                                        • M Offline
                                          M Offline
                                          Mikeeeeee
                                          wrote on last edited by
                                          #57

                                          I don't know much about Xcode. I created a project in Xcode and ran it on the ios emulator from Xcode.

                                          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