Has anyone seen/able to fix a " /usr/bin/codesign '--force' '--sign'" issue?

Hi all!


I'm using Xcode - Version 8.0 (8A218a) and sometimes it will fail during a build and will give me this error message. I've had luck cleaning the folder, trashing the derived folered, and booting. This obvisouly is not a strategy the works for me in the long term. Any ideas on how to fix this?


I've also recreated this issue with Xcode - Version 8.1 beta (8T46g).


error: Task failed with exit 1 signal 0 {
  /usr/bin/codesign '--force' '--sign' '-' '--verbose' '/Users/xxx/Library/Developer/Xcode/DerivedData/xxx-xxxxx/Build/Products/Debug-watchsimulator/TargetName Extension.appex/Frameworks/libswiftCoreGraphics.dylib'
}

I have yet to be able to solve this even doing all of what you said. I tried creating a new project and changed nothing and still received the same error. This is only happening for me when I try to archive or run it on a device.

Has anyone seen/able to fix a " /usr/bin/codesign '--force' '--sign'" issue?
 
 
Q