Thanks for filling out the whole report, it helped a lot!
Found the issue in the raw-xcodebuild-output.log
. You can find this file on the build’s page, in the Apps & Artifacts section/tab:
This error is one of the rare cases when the error is not at the end of the Xcode build log, but somewhere a bit above that. Around its end but like 100 lines before its end, that’s why you can’t see that in the bitrise.io build log directly (usually the error is in the last couple of lines, so to not to make the build logs even more verbose we only print the last 10 lines in the Xcode Archive step).
Anyway, so in a case like yours, when the bitrise.io build log does not include the Xcode error:
- Go to the Build’s page
- Into Apps & Artifacts section
- Locate and download the
raw-xcodebuild-output.log
(if the file’s not there please make sure you have the Deploy to Bitrise.io step in the workflow, as that’s the step which attaches this file to the build → more info: Xcode exit code 65 / exit code 66 / raw-xcodebuild-output.log - #2 by viktorbenei ) - Then search for
error:
in the raw xcodebuild output log (e.g. withgrep
:$ grep 'error:' ~/Downloads/raw-xcodebuild-output.log
)
In your case:
$ grep 'error:' ~/Downloads/raw-xcodebuild-output.log
While reading /Users/vagrant/git/ios/eyr/Images.xcassets/AppIcon.appiconset/AppIcon40@3x.png pngcrush caught libpng error:
The lines around this:
CopyPNGFile /Users/vagrant/Library/Developer/Xcode/DerivedData/eyr-aovrweneodzgtabgzxwvaqvvrcvp/Build/Intermediates.noindex/ArchiveIntermediates/eyr/InstallationBuildProductsLocation/Applications/eyr.app/AppIcon40@3x.png eyr/Images.xcassets/AppIcon.appiconset/AppIcon40@3x.png
cd /Users/vagrant/git/ios
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:/Users/vagrant/.bitrise/tools:/usr/local/bin:/usr/local/sbin:~/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin:/usr/local/opt/go/libexec/bin:/Users/vagrant/go/bin:/Users/vagrant/bitrise/tools/cmd-bridge/bin/osx:/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/tools:/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/tools/bin:/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands"
export TOOLCHAINS=
/Applications/Xcode.app/Contents/Developer/usr/bin/copypng -compress -strip-PNG-text /Users/vagrant/git/ios/eyr/Images.xcassets/AppIcon.appiconset/AppIcon40@3x.png /Users/vagrant/Library/Developer/Xcode/DerivedData/eyr-aovrweneodzgtabgzxwvaqvvrcvp/Build/Intermediates.noindex/ArchiveIntermediates/eyr/InstallationBuildProductsLocation/Applications/eyr.app/AppIcon40@3x.png
While reading /Users/vagrant/git/ios/eyr/Images.xcassets/AppIcon.appiconset/AppIcon40@3x.png pngcrush caught libpng error:
\2478p\247Zv\241\270\333\367\277\343v\241\374~\247\370u\2479
Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng emitted errors but did not return a nonzero exit code to indicate failure
This means that there’s some issue with that image. The most common issue is that the .png
file is not a PNG file actually, e.g. it’s actually a JPG saved with .png
extension (Xcode can’t handle this).
Fix the image, commit & push and it should be fine again
If you’d have any questions just let us know!
Happy Building!