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.
  • 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