Using Keychain on a Playground returns a -34018 (errSecMissingEntitlement)
| Originator: | abellaofernandez | ||
| Number: | rdar://28295064 | Date Originated: | 13-Sep-2016 |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 8 (8A218a) |
| Classification: | Reproducible: | Always |
Summary: When trying to add/update/delete an item from the Keychain on a Swift Playground, I receive a -34018 (errSecMissingEntitlement) error. There is no option to add Entitlements on a Swift Playground. I have attached a Swift Playground with the problem. Steps to Reproduce: 1. Install Xcode 8 2. Create new Swift Playground 3. Create simple code to add item to Keychain 4. Receive the -34018 (errSecMissingEntitlement) error. 5. There is no option to add Entitlements on a Swift Playground. Expected Results: 1. Install Xcode 8 2. Create new Swift Playground 3. Create simple code to add item to Keychain 4. Item is added to Keychain successfully. Actual Results: Item is not added to Keychain Version: Xcode 8 (8A218a) OS X El Capitan 10.11.6 (15G1004) Notes: Configuration: Attachments: 'Keychain Error.playground.zip' was successfully uploaded.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Behaviour verified
This currently disallows APIs that use the keychain (e.g. Realm) from working correctly in a playground :(