Get "Command CodeSign failed with a nonzero exit code" when preview

SchemeBuildError: Failed to build the scheme "Scrumdinger"

I just want build for previews ,not on device. meet this error with no change on the file "AppIcon60x60.png"


Sign Scrumdinger.app:

/Users/Library/Developer/Xcode/DerivedData/Scrumdinger-bnellhmooyjlwwcnhjmdsgqnkfuf/Build/Intermediates.noindex/Previews/Scrumdinger/Products/Debug-iphonesimulator/Scrumdinger.app: code object is not signed at all

In subcomponent: /Users/Library/Developer/Xcode/DerivedData/Scrumdinger-bnellhmooyjlwwcnhjmdsgqnkfuf/Build/Intermediates.noindex/Previews/Scrumdinger/Products/Debug-iphonesimulator/Scrumdinger.app/AppIcon60x60.png

Command CodeSign failed with a nonzero exit code


it seems not the first time I meet this error. I delete the png file then import a new one can not solve this problem

Get "Command CodeSign failed with a nonzero exit code" when preview
 
 
Q