Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
export TOOLCHAINS= /Applications/Xcode.app/Contents/Developer/usr/bin/copypng -compress -strip-PNG-text /Users/ME/Documents/Qt_PRJ/build-TEST_IOS-Qt_5_2_0_for_iOS_Simulator-Debug/TEST_IOS.xcodeproj/Defaultfirstname.lastname@example.org /Users/ME/Documents/Qt_PRJ/build-TEST_IOS-Qt_5_2_0_for_iOS_Simulator-Debug/Debug-iphonesimulator/TEST_IOS.app/Defaultemail@example.com
error: can't exec '/Applications/Xcode.app/Contents/Developer/usr/bin/copypng' (Permission denied)
Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit code 71
make: *** [iphonesimulator-debug] Error 65 make: *** [debug-iphonesimulator] Error 2 21:13:13: The process "/usr/bin/make" exited with code 2. Error while building/deploying project TEST_IOS (kit: Qt 5.2.0 for iOS Simulator) The kit Qt 5.2.0 for iOS Simulator has configuration issues which might be the root cause for this problem. When executing step "Make"
Someone can help me? I'm so tried! It's a week that i try to resolve it! Thank you!
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 ?
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?
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.
The difference between this two versions is 17Gb of memory
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.
Today i'll try and i let you know! Thank you!
** BUILD FAILED **
The following build commands failed:
CopyPNGFile Debug-iphonesimulator/TEST_IOS.app/Defaultfirstname.lastname@example.org TEST_IOS.xcodeproj/Defaultemail@example.com
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"
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/Defaultfirstname.lastname@example.org /Users/ME/Documents/Qt_PRJ/build-TEST_IOS-Qt_5_11_1_for_iOS_Simulator-Debug/Debug-iphonesimulator/TEST_IOS.app/Defaultemail@example.com Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng failed with exit code 255
Please help me!
ok, first things first,
do you have an ios developer account and is it registered/setup on your mac?
Did you register your target device in the Apple-Developer portal?
How i do it?
Did you once start Xcode itself to check that you have everything needed available ?
Yes! I also start an example app. And everythings work!
Did you update Qt in the interval ?
The how are you setting up your project ?
Are you compiling with QtCreator ?
ppnp last edited by ppnp
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!
@ppnp, you might want to check with a more recent version of Qt. If you need LTS, then 5.9 is the current one.
ppnp last edited by
@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!