xcode errSecInternalComponent code example
Example 1: xcode errSecInternalComponent
#keychain is locked run
security unlock-keychain login.keychain
Example 2: xcode errSecInternalComponent
reboot your mac
#keychain is locked run
security unlock-keychain login.keychain
reboot your mac