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

Since update 10.12 of Sierra, I can’t compile one of my iOS projects on a device only . But very strange, it works on a simulator. I tried to delete and restore my dev account in Xcode, perform a hard reboot, delete and restore all certificates in the keychain, etc. Xcode 8.0. I also tried also on beta 8.1.

Error:

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

+5
source share
1 answer

I had the same problem

Unlock the keychain by adding this line to the project configuration (Build> Execute shell)

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

+6
source

All Articles