/usr/bin/codesign failed with exit code 4

Mac 10.13 xcode 9

I’m trying to build unity to ios. Using the mobile template. I’m unable to build in xCode - 9

I get an error

Command /usr/bin/codesign failed with exit code 4

Hello. I found this solution on stack over flow. Hope it help. 1. The problem seem link to the png file target to the main app. IDK if it also affect the other file type. you can test it out.