I am using El Capitan
and Xcode 7.1 , I am trying to build and archive my application to upload to app store . After compiling this alert pops up :
but
Found the solution :
Third-party utilities such as Alfred, TextExpander, or MagicPrefs might appear to take "control" of the window as far as the OS is concerned. You can find the culprit by disabling them all, and turning them on one by one until you find one (or more) which affects Keychain in that manner. Credit : https://apple.stackexchange.com/questions/212622/keychain-wont-let-copy-passwords-after-10-11-1-update
In my case I just uninstalled MagicPref application and the problem solved