Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SecKey API returned: -25304 libswiftAVFoundation.dylib: unknown error -1=ffffffffffffffff error: Task failed with exit 1 signal 0

Since 10.12 Sierra major update, I can't compile one of my iOS projects on only on device. But very weird, it's work on simulator. I tried to remove and resetup my dev account in Xcode, hard reboot, remove and resetup all certificates in keychain, etc. XCode 8.0. I tried also on 8.1 beta too, same.

The error :

SecKey API returned: -25304, (null)/Users/****/Library/Developer/Xcode/DerivedData/****-epkppprfmidyatftsvnxgjqsawit/Build/Products/Debug-iphoneos/****.app/Frameworks/libswiftAVFoundation.dylib: unknown error -1=ffffffffffffffff error: Task failed with exit 1 signal 0 { /usr/bin/codesign '--force' '--sign' 'C47B52FDE2CABFC81D33BED8937984AF8BC6DC33' '--verbose' '/Users/****/Library/Developer/Xcode/DerivedData/****-epkppprfmidyatftsvnxgjqsawit/Build/Products/Debug-iphoneos/***.app/Frameworks/libswiftAVFoundation.dylib'

like image 380
MattOZ Avatar asked Sep 24 '16 22:09

MattOZ


1 Answers

I had the same issue,

Unlock your keychain by adding this line to your projects configuration (Build>Execute shell)

#unlock the keychain
security unlock-keychain -p "myPrettyPassword" $HOME/Library/Keychains/MyPrettyKeychain.keychain

like image 132
Gdoudou Avatar answered Nov 13 '22 10:11

Gdoudou