I’m wondering if it’s using the system keychain or your login keychain.
If your certs are empty, that certainly indicates that part of the app signing will fail. The exact problem is that even if you have installed a cert, you will need to export your private key and create the .p12 file for that cert to be recognized as being part of your keychain (as I found out last night). Since I didn’t create the certs I downloaded with a CSR, I couldn’t export them and create the .p12, and the certs were technically in my keychain, but without the private key, ignored. Does that make sense or sound accurate? In any case, Ron Roche wrote an book that was my code signing bible before Xcode got more advanced and chapter 3 is pure gold for addressing these some of these problems. For 16 bucks, it’s more than worth the money. Essential iOS Build and Release: A Comprehensive Guide to Building, Packaging, and Distribution http://www.amazon.com/Essential-iOS-Build-Release-Comprehensive/dp/144931394 https://books.google.com/books/about/Essential_iOS_Build_and_Release.html?id=ITvMnQYIzRYC https://books.google.com/books?id=ITvMnQYIzRYC&pg=PA146&lpg=PA146&dq=ron+roche+code+signing&source=bl&ots=gcgQRMKlG2&sig=SlHRG3BDK8Wihsl37jSNJOEYPVY&hl=en&sa=X&ved=0ahUKEwiq-Mimm8vKAhUJu4MKHY_YCTkQ6AEIKDAA#v=onepage&q=ron%20roche%20code%20signing&f=false On Jan 27, 2016, at 5:53 PM, Jens Alfke <j...@mooseyard.com> wrote: > For the past week or so I’ve been unable to code-sign any apps. The codesign > tool fails with an unhelpful error "The specified keychain is not a valid > keychain file”, which is the error message for errSecInvalidKeychain (-25295). > > I’ve checked my keychain in Keychain Access and it seems OK. (There used to > be a Keychain First Aid command, but I can’t find it anymore.) The only weird > thing is that the My Certificates category is empty — it used to have a bunch > of identities in it from Apple and some other sources. The Apple developer > certs are still there in the Certificates section, though. > > I wouldn’t expect that to result in errSecInvalidKeychain, though. Any idea > what’s going on? > > —Jens > > CodeSign build/ToDoLite/Build/Products/Debug-iphoneos/ToDoLite.app > cd /Couchbase/tmp/ToDoLite-iOS > export > CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate > export > PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" > > Signing Identity: "iPhone Developer: Jens Alfke (*********)" > Provisioning Profile: "iOS Team Provisioning Profile: *" > (****************************) > > /usr/bin/codesign --force --sign ********************* --entitlements > /Couchbase/tmp/ToDoLite-iOS/build/ToDoLite/Build/Intermediates/ToDoLite.build/Debug-iphoneos/ToDoLite.build/ToDoLite.app.xcent > --timestamp=none > /Couchbase/tmp/ToDoLite-iOS/build/ToDoLite/Build/Products/Debug-iphoneos/ToDoLite.app > > error: The specified keychain is not a valid keychain file. > > —Jens > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Xcode-users mailing list (Xcode-users@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/xcode-users/zav%40mac.com > > This email sent to z...@mac.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (Xcode-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com This email sent to arch...@mail-archive.com