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. XCode 8, Qt 5.8, iOS app xCodeBuild error
QtWS25 Last Chance

XCode 8, Qt 5.8, iOS app xCodeBuild error

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 4 Posters 3.8k 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.
  • D Offline
    D Offline
    dl14
    wrote on last edited by dl14
    #1

    I recently updated to MacOS and Xcode 8. Qt (5.8) wasn't working but I fixed it for Desktop applications using the following link. Now Qt works for desktop applications but not when I try to create iOS applications.

    I can run QMake but when I try to deploy the app to my iPhone or run the simulator but when I try to build (and run it on the iPhone) I get the following message:

    error: Xcodebuild failed.

    When I try to run it on the simulator I get the following messages:

    error: Failed to run -q -iphone -f 0 -rem text /Qt_Projects/build-HomeClient-iphonesimulator_clang_Qt_5_8_0_for_iOS-Debug/HomeClient.xcodeproj/Default-568h@2x.png /Users/DevLakhia14/Qt_Projects/build-HomeClient-iphonesimulator_clang_Qt_5_8_0_for_iOS-Debug/Debug-iphonesimulator/HomeClient.app/Default-568h@2x.png

    error: Xcodebuild failed.

    Any suggestions on how to fix this issue?

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

      Hi and welcome to devnet,

      Are you experiencing the same with a default project ?

      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
      • D Offline
        D Offline
        dl14
        wrote on last edited by
        #3

        Yup, I tried it on the TouchInteraction example for iOS and the same thing happened

        ekkescornerE 1 Reply Last reply
        0
        • GTDevG Offline
          GTDevG Offline
          GTDev
          wrote on last edited by
          #4

          What happens if you only choose "Run qmake" in Qt Creator (available with right-click on project), and then open the *.xcodeproj file that is created in the build directory.

          Can you build / run the project with XCode or do you see a more detailed error then?

          Senior Developer at Felgo - https://felgo.com/qt

          Develop mobile Apps for iOS & Android with Qt
          Felgo is an official Qt Technology Partner

          1 Reply Last reply
          0
          • D dl14

            Yup, I tried it on the TouchInteraction example for iOS and the same thing happened

            ekkescornerE Offline
            ekkescornerE Offline
            ekkescorner
            Qt Champions 2016
            wrote on last edited by
            #5

            @dl14 I have experienced similar behavior.
            for me this helps:

            • Build APP in QTCreator
            • Open generated Xcode project in Xcode, select correct signing informations, wait until Xcode has compiled the project
            • from now on it compiles and deploys from QtCreator

            This happens only one time for each APP

            ekke ... Qt Champion 2016 | 2024 ... mobile business apps
            5.15 --> 6.8 https://t1p.de/ekkeChecklist
            QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

            1 Reply Last reply
            1
            • D Offline
              D Offline
              dl14
              wrote on last edited by
              #6

              This is the following error message I get when I build it in XCode after doing QMake in Qt:

              Compress PNG File Error:
              Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit
              code 255

              ekkescornerE 1 Reply Last reply
              0
              • D dl14

                This is the following error message I get when I build it in XCode after doing QMake in Qt:

                Compress PNG File Error:
                Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit
                code 255

                ekkescornerE Offline
                ekkescornerE Offline
                ekkescorner
                Qt Champions 2016
                wrote on last edited by
                #7

                @dl14 those errors usually went away if you delete the build dir, clean project and build again

                ekke ... Qt Champion 2016 | 2024 ... mobile business apps
                5.15 --> 6.8 https://t1p.de/ekkeChecklist
                QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

                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