• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Code-signing error "The specified keychain is not a valid keychain file"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Code-signing error "The specified keychain is not a valid keychain file"


  • Subject: Code-signing error "The specified keychain is not a valid keychain file"
  • From: Jens Alfke <email@hidden>
  • Date: Wed, 27 Jan 2016 14:53:56 -0800

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Code-signing error "The specified keychain is not a valid keychain file"
      • From: Alex Zavatone <email@hidden>
  • Prev by Date: Re: Code signing and provisioning hell
  • Next by Date: Re: Code-signing error "The specified keychain is not a valid keychain file"
  • Previous by thread: Re: Code signing and provisioning hell
  • Next by thread: Re: Code-signing error "The specified keychain is not a valid keychain file"
  • Index(es):
    • Date
    • Thread