I am having problems accessing Keychain on the device. This only happens when starting the application from Xcode. If I launch the application on my own (by clicking on its icon), Keychain works without problems. No problems in the simulator either.
Console output:
Jan 27 14:33:24 iPhone MyApp[4305] <Error>: SecOSStatusWith error:[-34018] The operation couldn't be completed. (OSStatus error -34018 - Remote error : The operation couldn't be completed. (OSStatus error -34018 - client has neither application-identifier nor keychain-access-groups entitlements)) Jan 27 14:33:24 iPhone securityd[77] <Error>: securityd_xpc_dictionary_handler MyApp[4305] delete The operation couldn't be completed. (OSStatus error -34018 - client has neither application-identifier nor keychain-access-groups entitlements)
I am using Xcode 6.1.1 and iPhone 5 with iOS 8.1.1.
It is worth noting that the application that I am trying to debug has code for accessing the keychain, which is located in the target line of the Cocoa Touch framework (this may be the source of the problem).
The provisioning profile is general: iOSTeam Provisioning Profile: * (managed by Xcode)
source share