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. Xcodebuild failed.
Forum Updated to NodeBB v4.3 + New Features

Xcodebuild failed.

Scheduled Pinned Locked Moved Solved Mobile and Embedded
18 Posts 5 Posters 5.6k Views 3 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi and welcome to devnet,

    What version of macOS are you running ?
    Which version of Xcode are you using ?
    Why are you using such an outdated version of Qt ?
    What are you using to build your application ?

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

    E 1 Reply Last reply
    0
    • SGaistS SGaist

      Hi and welcome to devnet,

      What version of macOS are you running ?
      Which version of Xcode are you using ?
      Why are you using such an outdated version of Qt ?
      What are you using to build your application ?

      E Offline
      E Offline
      edoardo.videx
      wrote on last edited by
      #3

      @SGaist
      I use a macOS 10.13 and Xcode version 9.4.1
      I decided to use a version of Qt 5.2 beacause the latest versions take up a lot of space. I use a Debug iOS simulator. Do you think this problem could ne resolved with the latest version of Qt?

      jsulmJ 1 Reply Last reply
      0
      • E edoardo.videx

        @SGaist
        I use a macOS 10.13 and Xcode version 9.4.1
        I decided to use a version of Qt 5.2 beacause the latest versions take up a lot of space. I use a Debug iOS simulator. Do you think this problem could ne resolved with the latest version of Qt?

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

        @edoardo.videx said in Xcodebuild failed.:

        beacause the latest versions take up a lot of space

        How much more space does Qt 5.11.1 consume compared to 5.2? Is your hard disk already full? I mean, this is really not a reason to use such an old Qt version. Especially if you're targeting mobile platforms.

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

        E 1 Reply Last reply
        0
        • jsulmJ jsulm

          @edoardo.videx said in Xcodebuild failed.:

          beacause the latest versions take up a lot of space

          How much more space does Qt 5.11.1 consume compared to 5.2? Is your hard disk already full? I mean, this is really not a reason to use such an old Qt version. Especially if you're targeting mobile platforms.

          E Offline
          E Offline
          edoardo.videx
          wrote on last edited by
          #5

          @jsulm
          The difference between this two versions is 17Gb of memory

          J.HilkJ 1 Reply Last reply
          0
          • E edoardo.videx

            @jsulm
            The difference between this two versions is 17Gb of memory

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by J.Hilk
            #6

            @edoardo.videx
            That is because you blindly selected everything from the installer.

            The online installer provides pre compiled libaries for 10ish different systems.

            Expand the tree and only select the one you actually want/need. The IOS precompiled libaries shouldn't take more than 2 gb of space.


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            1 Reply Last reply
            4
            • E Offline
              E Offline
              edoardo.videx
              wrote on last edited by
              #7

              Today i'll try and i let you know! Thank you!

              1 Reply Last reply
              0
              • E Offline
                E Offline
                edoardo.videx
                wrote on last edited by
                #8

                @jsulm @J-Hilk I update Qt to 5.11 and i've the same problem.

                ** BUILD FAILED **

                The following build commands failed:
                CopyPNGFile Debug-iphonesimulator/TEST_IOS.app/Default-568h@2x.png TEST_IOS.xcodeproj/Default-568h@2x.png
                (1 failure)
                make: *** [xcodebuild-debug-simulator] Error 65
                18:51:31: The process "/usr/bin/make" exited with code 2.
                Error while building/deploying project TEST_IOS (kit: Qt 5.11.1 for iOS Simulator)
                When executing step "Make"

                COMPILE OUTPUT:

                Accounts preference pane.
                    -allowProvisioningDeviceRegistration                     Allow xcodebuild to register your destination device on the developer portal if necessary. This flag only takes effect if -allowProvisioningUpdates is also passed.
                Can't exec "": No such file or directory at /Applications/Xcode.app/Contents/Developer/usr/bin/copypng line 89.
                ERROR: Failed to run  -q -iphone -f 0 -rem text /Users/ME/Documents/Qt_PRJ/build-TEST_IOS-Qt_5_11_1_for_iOS_Simulator-Debug/TEST_IOS.xcodeproj/Default-568h@2x.png /Users/ME/Documents/Qt_PRJ/build-TEST_IOS-Qt_5_11_1_for_iOS_Simulator-Debug/Debug-iphonesimulator/TEST_IOS.app/Default-568h@2x.png
                Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit code 255
                

                Please help me!

                J.HilkJ 1 Reply Last reply
                0
                • E edoardo.videx

                  @jsulm @J-Hilk I update Qt to 5.11 and i've the same problem.

                  ** BUILD FAILED **

                  The following build commands failed:
                  CopyPNGFile Debug-iphonesimulator/TEST_IOS.app/Default-568h@2x.png TEST_IOS.xcodeproj/Default-568h@2x.png
                  (1 failure)
                  make: *** [xcodebuild-debug-simulator] Error 65
                  18:51:31: The process "/usr/bin/make" exited with code 2.
                  Error while building/deploying project TEST_IOS (kit: Qt 5.11.1 for iOS Simulator)
                  When executing step "Make"

                  COMPILE OUTPUT:

                  Accounts preference pane.
                      -allowProvisioningDeviceRegistration                     Allow xcodebuild to register your destination device on the developer portal if necessary. This flag only takes effect if -allowProvisioningUpdates is also passed.
                  Can't exec "": No such file or directory at /Applications/Xcode.app/Contents/Developer/usr/bin/copypng line 89.
                  ERROR: Failed to run  -q -iphone -f 0 -rem text /Users/ME/Documents/Qt_PRJ/build-TEST_IOS-Qt_5_11_1_for_iOS_Simulator-Debug/TEST_IOS.xcodeproj/Default-568h@2x.png /Users/ME/Documents/Qt_PRJ/build-TEST_IOS-Qt_5_11_1_for_iOS_Simulator-Debug/Debug-iphonesimulator/TEST_IOS.app/Default-568h@2x.png
                  Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit code 255
                  

                  Please help me!

                  J.HilkJ Offline
                  J.HilkJ Offline
                  J.Hilk
                  Moderators
                  wrote on last edited by
                  #9

                  @edoardo.videx
                  ok, first things first,
                  do you have an ios developer account and is it registered/setup on your mac?


                  Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                  Q: What's that?
                  A: It's blue light.
                  Q: What does it do?
                  A: It turns blue.

                  E 1 Reply Last reply
                  0
                  • J.HilkJ J.Hilk

                    @edoardo.videx
                    ok, first things first,
                    do you have an ios developer account and is it registered/setup on your mac?

                    E Offline
                    E Offline
                    edoardo.videx
                    wrote on last edited by
                    #10

                    @J.Hilk Yes!

                    J.HilkJ 1 Reply Last reply
                    0
                    • E edoardo.videx

                      @J.Hilk Yes!

                      J.HilkJ Offline
                      J.HilkJ Offline
                      J.Hilk
                      Moderators
                      wrote on last edited by
                      #11

                      @edoardo.videx
                      Did you register your target device in the Apple-Developer portal?


                      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                      Q: What's that?
                      A: It's blue light.
                      Q: What does it do?
                      A: It turns blue.

                      E 1 Reply Last reply
                      0
                      • J.HilkJ J.Hilk

                        @edoardo.videx
                        Did you register your target device in the Apple-Developer portal?

                        E Offline
                        E Offline
                        edoardo.videx
                        wrote on last edited by
                        #12

                        @J.Hilk
                        How i do it?

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

                          Did you once start Xcode itself to check that you have everything needed available ?

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

                          E 1 Reply Last reply
                          0
                          • SGaistS SGaist

                            Did you once start Xcode itself to check that you have everything needed available ?

                            E Offline
                            E Offline
                            edoardo.videx
                            wrote on last edited by
                            #14

                            @SGaist
                            Yes! I also start an example app. And everythings work!

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

                              Did you update Qt in the interval ?
                              The how are you setting up your project ?
                              Are you compiling with QtCreator ?

                              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
                              • P Offline
                                P Offline
                                ppnp
                                wrote on last edited by ppnp
                                #16

                                I'm stuck with a similar problem after upgrading to macOS 10.13.6, XCode 9.4, running Qt5.6.2:

                                CopyPNGFile Debug-iphoneos/CmsMobileApp.app/Icon-29.png /Users/appbuilder/Home/workspace/iOS-AutoRecloser3/appCMS_Mobile/CmsMobileApp/ios/Icon-29.png
                                    cd /Users/appbuilder/Home/workspace/iOS-AutoRecloser3/iosbuild/appCMS_Mobile/CmsMobileApp
                                    export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
                                    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin;"
                                    export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk
                                    export TOOLCHAINS=
                                    /Applications/Xcode.app/Contents/Developer/usr/bin/copypng -compress -strip-PNG-text /Users/appbuilder/Home/workspace/iOS-AutoRecloser3/appCMS_Mobile/CmsMobileApp/ios/Icon-29.png /Users/appbuilder/Home/workspace/iOS-AutoRecloser3/iosbuild/appCMS_Mobile/CmsMobileApp/Debug-iphoneos/CmsMobileApp.app/Icon-29.png
                                xcrun: error: invalid option '-f'
                                Usage: xcrun [-project <projectname>] [[-target <targetname>]...
                                Can't exec "": No such file or directory at /Applications/Xcode.app/Contents/Developer/usr/bin/copypng line 89.
                                ERROR: Failed to run  -q -iphone -f 0 -rem text /Users/appbuilder/Home/workspace/iOS-AutoRecloser3/appCMS_Mobile/CmsMobileApp/ios/Icon-29.png /Users/appbuilder/Home/workspace/iOS-AutoRecloser3/iosbuild/appCMS_Mobile/CmsMobileApp/Debug-iphoneos/CmsMobileApp.app/Icon-29.png
                                Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit code 255
                                

                                There were a few other issues related to recent update to the environment (development team, license agreement thing, sdk version check) which were solved apparently, but unfortunately can't find solution for the problem above. Tried as suggested in some places installing/reseting command line tools for xcode (current xcode-select version 2349), the issue persists. The same project can be built by xcode opening .xcodeproj generated by

                                qmake -spec macx-xcode -r myproject.pro
                                

                                However, the following fails as shown above

                                /$QMAKE ../$PROJECT_NAME.pro -r -spec macx-ios-clang CONFIG+=iphoneos QMAKE_MAC_XCODE_SETTINGS=team team.name=DEVELOPMENT_TEAM team.value=/$TEAMID
                                

                                Any advice will be very much appreciated!

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

                                  @ppnp, you might want to check with a more recent version of Qt. If you need LTS, then 5.9 is the current one.

                                  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
                                  • P Offline
                                    P Offline
                                    ppnp
                                    wrote on last edited by
                                    #18

                                    @SGaist, thanks. Due to license terms Qt5.6.2 is the latest available for the time being. Fortunately, re-install of Xcode app fixed the issue for me. Cheers!

                                    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