Post

Replies

Boosts

Views

Activity

Reply to M4 Mac Mini: Xcode generates private keys with wrong label - codesigning impossible
I tried the nuclear option - completely wiping my laptop and starting a new. Then followed the same exact steps to create a dev cert that I had been followed when initially setting up. It worked immediately. I see the paired certificate + private key, I have a signing identity, and I am able to push a dummy app to my phone. This is fairly painful, since I now need to reconfigure my laptop but I think I am unblocked. I think there is something that can go wrong in the migration process, which silently breaks security's ability to pair certs/keys into an identity
8h
Reply to M4 Mac Mini: Xcode generates private keys with wrong label - codesigning impossible
Thanks for the input Quinn. Did you set up your M5 Macbook using a time machine backup from an older Mac? I didn’t use Time Machine backup. I set up the new Mac by connecting it directly to my old Mac over USB-C and transferring everything that way. So it was a direct Mac-to-Mac migration over usb-c, than restoring from Time Machine. I believe it still may have carried over Keychain/security data, though, so it could still be relevant to the current issue. The old mac was a 2019 intel based macbook pro if that is useful info.
1d
Reply to M4 Mac Mini: Xcode generates private keys with wrong label - codesigning impossible
I read through the thread a bit more; I've run into similar weirdness but when using Xcode's Run command. The Xcode error is: no identity found Command CodeSign failed with a nonzero exit code When I run security find-identity, my result is: Policy: X.509 Basic Matching identities 0 identities found Valid identities only 0 valid identities found Steps I have tried: Xcode's automatic signing (Deleting/recreating) Creating my own CertificateSigningRequest, signing it through the apple Cert management site, creating a P12 and imported into keychain Created fresh login Keychain Created new Admin user on my laptop, and attempted to run Xcode with new cert through there Used openssl to create my own RSA key pair/ CSR/ and signed through apple cert portal. Granted trusted status to all certificates for any operations No matter what I try, I cannot get the private key associated to the cert with the chevron, and cannot create a valid signing identity. For what its worth, this is a 2 day old M5 Macbook pro. Pretty disappointing so far, I'm at my wits end and have spent ~10 hours on this with 0 progress.
2w
Reply to M4 Mac Mini: Xcode generates private keys with wrong label - codesigning impossible
I tried the nuclear option - completely wiping my laptop and starting a new. Then followed the same exact steps to create a dev cert that I had been followed when initially setting up. It worked immediately. I see the paired certificate + private key, I have a signing identity, and I am able to push a dummy app to my phone. This is fairly painful, since I now need to reconfigure my laptop but I think I am unblocked. I think there is something that can go wrong in the migration process, which silently breaks security's ability to pair certs/keys into an identity
Replies
Boosts
Views
Activity
8h
Reply to M4 Mac Mini: Xcode generates private keys with wrong label - codesigning impossible
Thanks for the input Quinn. Did you set up your M5 Macbook using a time machine backup from an older Mac? I didn’t use Time Machine backup. I set up the new Mac by connecting it directly to my old Mac over USB-C and transferring everything that way. So it was a direct Mac-to-Mac migration over usb-c, than restoring from Time Machine. I believe it still may have carried over Keychain/security data, though, so it could still be relevant to the current issue. The old mac was a 2019 intel based macbook pro if that is useful info.
Replies
Boosts
Views
Activity
1d
Reply to No identity found: Command CodeSign failed with a nonzero exit code
I have also run into this issue! I opened a case for it (20000140402724). Tried about 90% of what pzmi did, and also tried creating a brand new admin User + Cert + Application, and still no luck. Incredibly frustrating problem. This thread seems similar? https://developer.apple.com/forums/thread/826882?page=2
Replies
Boosts
Views
Activity
2w
Reply to M4 Mac Mini: Xcode generates private keys with wrong label - codesigning impossible
I read through the thread a bit more; I've run into similar weirdness but when using Xcode's Run command. The Xcode error is: no identity found Command CodeSign failed with a nonzero exit code When I run security find-identity, my result is: Policy: X.509 Basic Matching identities 0 identities found Valid identities only 0 valid identities found Steps I have tried: Xcode's automatic signing (Deleting/recreating) Creating my own CertificateSigningRequest, signing it through the apple Cert management site, creating a P12 and imported into keychain Created fresh login Keychain Created new Admin user on my laptop, and attempted to run Xcode with new cert through there Used openssl to create my own RSA key pair/ CSR/ and signed through apple cert portal. Granted trusted status to all certificates for any operations No matter what I try, I cannot get the private key associated to the cert with the chevron, and cannot create a valid signing identity. For what its worth, this is a 2 day old M5 Macbook pro. Pretty disappointing so far, I'm at my wits end and have spent ~10 hours on this with 0 progress.
Replies
Boosts
Views
Activity
2w
Reply to M4 Mac Mini: Xcode generates private keys with wrong label - codesigning impossible
Were you able to resolve this? I am running into the same issue on my brand new M5 Macbook pro. Incredibly frustrating, and I am hard blocked by this.
Replies
Boosts
Views
Activity
2w