title: xcodebuild error - SecKey API returned: -25308
body: <p>I'm receiving the error below while trying to build my iOS app. This error only occurs while building for the Release configuration. Also, I'm using CocoaPods for my third-party dependencies and these builds are running on Jenkins through SSH.</p>
  
  <pre><code>SecKey API returned: -25308, (null)/Users/iosbuilder/Library/Developer/Xcode/DerivedData/*/Build/Intermediates/ArchiveIntermediates/Production/InstallationBuildProductsLocation/Applications/*.app/Frameworks/AFNetworking.framework: 
  unknown error -1=ffffffffffffffff
  Command /bin/sh failed with exit code 1
  </code></pre>
  
  <p>I've tried unlocking the keychain on the build server to make sure there isn't a UI block for keychain permissions, but the issue still persists...</p>
  
  <p>Any idea why this is occurring and how I might fix the issue?</p>