Cloud Build Throws error during build with xcode/pngcrush.

We are having this error that has not happened with our previous projects, which use the OneSignal plugin. I am also curious as why the ios build even has stuff from the android resources included.

If anyone can give give me clarity as to why this is happening, that would be great.

8374:        [xcode] CopyPNGFile /BUILD_PATH/Library/Developer/Xcode/DerivedData/Unity-iPhone-efomffqlhhobxuccolodbxtkkkjo/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/APPLICATION_PATH/bingostory.app/ic_stat_onesignal_default.png Libraries/Plugins/Android/OneSignalConfig/res/drawable-mdpi-v11/ic_stat_onesignal_default.png
8375:        [xcode]     cd /BUILD_PATH/Company.Game.Project/temp.Ar01Dn
8376:        [xcode]     export PATH="/APPLICATION_PATH/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Android Studio.app/sdk/:/BUILD_PATH/bin/:/Library/Java/JavaVirtualMachines/jdk1.7.0_71.jdk/Contents/Home/bin:/Applications/Android Studio.app/sdk/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/buildbot/.mason/buildpacks/unity/libs/vendor/jsawk:/Users/buildbot/.mason/buildpacks/xcode/libs/vendor/jsawk:/Users/buildbot/.rvm/bin"
8377:        [xcode]     /APPLICATION_PATH/Xcode.app/Contents/Developer/usr/bin/copypng -compress -strip-PNG-text /BUILD_PATH/clipwire-pte-ltd-24740.bingostory.ios-development_auto/temp.Ar01Dn/Libraries/Plugins/Android/OneSignalConfig/res/drawable-mdpi-v11/ic_stat_onesignal_default.png /Users/buildbot/Library/Developer/Xcode/DerivedData/Unity-iPhone-efomffqlhhobxuccolodbxtkkkjo/Build/Intermediates/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/bingostory.app/ic_stat_onesignal_default.png
8378:        [xcode] While reading /BUILD_PATH/Company.Game.Project/temp.Ar01Dn/Libraries/Plugins/Android/OneSignalConfig/res/drawable-mdpi-v11/ic_stat_onesignal_default.png pngcrush caught libpng error:
8379:        [xcode]    Read Error
8380:        [xcode] Command /APPLICATION_PATH/Xcode.app/Contents/Developer/usr/bin/copypng emitted errors but did not return a nonzero exit code to indicate failure

So currently this happens every other build it seems, so the first build it happens, second is fine, 3rd breaks again.

Hi - we had the same issue.
Fixed it by doing this on the folder Plugins/Android/OneSignalConfig

2907329--214215--upload_2017-1-4_13-45-37.png

Cheers

Thanks,

We ended up create a tool that monitors all plugins and based on their folder structure can determine what platforms should be enabled for them.