SpaceMadness / lunar-unity-console

High-performance Unity iOS/Android logger built with native platform UI
https://www.assetstore.unity3d.com/en/#!/content/43800
Other
833 stars 112 forks source link

iOS build error: pngcrush caught libpng error: Not a PNG file.. #193

Closed Stephan-FDG closed 3 years ago

Stephan-FDG commented 3 years ago

Hello,

i have a problem with the iOS build and I was hoping you could help me out Main problem here is, that even though the archive is created and I could manually upload it, the problem is that Jenkins marks this as a build error and stops the deploy process.

Here is the Error Message: All Images from "/LunarConsole/Editor/iOS/Common/Images" are affected I am getting a total of 115 Errors

Xcode Error

While reading /Users/buildmachine/.jenkins/workspace/myApp/Assets/External/LunarConsole/Editor/iOS/Common/Images/lunar_console_actions_empty_warning.png pngcrush caught libpng error: Not a PNG file.. Could not find file: /Users/buildmachine/Library/Developer/Xcode/DerivedData/Unity-iPhone-cbzbsuhxundvzwegfytpipsbsjlx/Build/Products/Debug-iphoneos/myApp.app/lunar_console_actions_empty_warning.png Command /Applications/Xcode.app/Contents/Developer/usr/bin/copypng emitted errors but did not return a nonzero exit code to indicate failure

Unity Version: 2020.2.3f1 We are building on BigSur on a M1 Chip

I tried to update LunarConsole with no success.

I already set the PNG Compress to "NO" in our post-build script with this command: pbxProject.SetBuildProperty(targetGuid,"COMPRESS_PNG_FILES","NO");

did I miss any Settings? Thanks in advanced!

weeeBox commented 3 years ago

Hi @Stephan-FDG - I haven't seen this before: what's Xcode version do you use? Can you attach the whole log?

Stephan-FDG commented 3 years ago

Hey, i was able to track down the issue. For some reason our Jenkins had issues with the git-lfs installation resulting in corrupting all .pngs from the repository. this became clear after I tried to upload to TestFlight manually.

Updating git-lfs and telling Jenkins the correct path in the environment variables fixed my problem

But it had nothing to do with the lunar console, sorry for bothering you.

weeeBox commented 3 years ago

No worries - glad you figured it out!