codesign failed with a nonzero exit code

Hi,


Currently I am stuck on a frustrating issue with Xcode (10.0).


I have an apple developer account, and it is linked to Xcode. Certificates etc are all downloaded.


When I do a build or run my unit tests, everything goes fine.


But if I then make a change, and run unit tests again, it fails with Command CodeSign failed with a nonzero exit code.

(....app: code object is not signed at all)


I have to do a clean build, then I can run it again. This is a loop.


Build clean -> Run tests -> Make changes -> Build clean -> Run tests -> ...


As you can see this is not very productive.



Couple of things I have tried:

- Remove all certificates from apple

- Remove complete keychain


The above does not seem to work. One thing I notice is that the certificate "Mac developer: FirstName LastName" expires before it is created, even when I delete it.


All help is appreciated.

Posted on Oct 12, 2018 10:59 AM

Reply

Similar questions

1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

codesign failed with a nonzero exit code

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.