Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Sierra Keychain issues
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="MacDeveloper" data-source="post: 1749103" data-attributes="member: 389722"><p>Hi all, hoping to get some insight into a keychain issue that has cropped up in Sierra (10.12.x) Note, all code involved worked fine in 10.11.x, and I'm using XCode 8.2.1. The code is Swift 3.</p><p></p><p>So my app is split into two components, a framework and the main app, both written in Swift. In the framework I have my keychain code. Basic keychain read/write functionality. Works fine in OSX and iOS.</p><p></p><p>Now in Sierra, when my app goes to write to the keychain I get: <em>Error writing to keychain: Error Domain=NSOSStatusErrorDomain Code=-34018</em>. Code -34018 is missing entitlements..... </p><p></p><p>This is running in a development debug session, so I'm just using my personal team code signing.</p><p></p><p>So I figure I need to add an entitlement file, but what entitlement does it need? In the Xcode project Capabilities tab I only have "App Sandbox" and "App Groups". I've tried both, and no change.</p><p></p><p>Any ideas? Ironically, when we build the app in CI, using my company's Enterprise certs it works. However, this doesn't work for development. Like I said, I'd really rather use the personal team code signing, but I'm at a loss of where to go next.</p><p></p><p>Thanks</p></blockquote><p></p>
[QUOTE="MacDeveloper, post: 1749103, member: 389722"] Hi all, hoping to get some insight into a keychain issue that has cropped up in Sierra (10.12.x) Note, all code involved worked fine in 10.11.x, and I'm using XCode 8.2.1. The code is Swift 3. So my app is split into two components, a framework and the main app, both written in Swift. In the framework I have my keychain code. Basic keychain read/write functionality. Works fine in OSX and iOS. Now in Sierra, when my app goes to write to the keychain I get: [I]Error writing to keychain: Error Domain=NSOSStatusErrorDomain Code=-34018[/I]. Code -34018 is missing entitlements..... This is running in a development debug session, so I'm just using my personal team code signing. So I figure I need to add an entitlement file, but what entitlement does it need? In the Xcode project Capabilities tab I only have "App Sandbox" and "App Groups". I've tried both, and no change. Any ideas? Ironically, when we build the app in CI, using my company's Enterprise certs it works. However, this doesn't work for development. Like I said, I'd really rather use the personal team code signing, but I'm at a loss of where to go next. Thanks [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Sierra Keychain issues
Top