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.