Xcode: iPhone app codesign error

后端 未结 10 734
一生所求
一生所求 2020-12-23 20:18

When building a new iPhone app in Xcode, I\'m getting this error:

codesign error: code signing identity \'iphone developer\' does not match any co

10条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-23 20:53

    I just solved my code signing problem. What a nightmare! Over 8 hours of frustration over two days. I tried new apps, new app names, new certificates, deleting provisioning profiles etc. Basically I had two "iPhone Distribution" certificates in my keychain causing all code signing to fail. But one was hidden! The visible cert was in my Login keychain. The invisible cert was in my System keychain. Be warned, add your certificate to either keychain but not both! I deleted the certificate from the System keychain and it became a ghost certificate. It no longer appears in the System keychain "Keychain Access" tool but it did exist in the actual System keychain file, so effectively it had not been removed. I grepped the keychain file for the word Distribution and there it was! My solution was to remove that line containing iPhone Distribution from the keychain file which fixed the code signing. The result is I have a broken System keychain. But I can sign apps again \m/

提交回复
热议问题