Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcodebuild error - SecKey API returned: -25308

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.

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

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...

Any idea why this is occurring and how I might fix the issue?

like image 441
Jake Avatar asked Jan 03 '17 20:01

Jake


1 Answers

It is a keychain access issue. Solution is Here

With the code in the link you can try to execute that in shell on the build config of the project

like image 79
Mark Dominick Flores Avatar answered Sep 23 '22 07:09

Mark Dominick Flores