SFHFKeychainUtils. iOS keychain. ARC compatible

here is the ARC compatible SFHFKeychainUtils, SFHFKeychainUtils.h // // SFHFKeychainUtils.h // // Created by Buzz Andersen on 10/20/08. // Based partly on code by Jonathan Wight, Jon Crosby, and Mike Malone. // Copyright 2008 Sci-Fi Hi-Fi. All rights reserved. // // Permission is hereby granted, free of charge, to any person // obtaining a copy … Read more

Is there a way to remove the authorization prompt from command-line instances of Instruments (Xcode)?

Okay I think I got it working. Here are some more details about how to remove xcode command line authorization prompt What I did was the following: Mark jenkins user as admin (unfortunately it seems that there is no other way atm) Go to /etc/authorization search for key system.privilige.taskport change value of allow-root to true … Read more

Running xcodebuild from a forked terminal

I had te error User interaction is not allowed and solved it by unlocking the keychain first security unlock-keychain /Users/yannooo/Library/Keychains/login.keychain I’ve also tried to put my certs in the System’s keychain and it was working. My final solution was to put all my iPhone related certs in a dedicated keychain named iPhone.keychain using the Keychain … Read more

Mac OS X wants to use system keychain when compiling the project

Open Keychain Access. In the top-left corner, unlock the keychain (if it is locked). Choose the System keychain from the top-left corner. Find your distribution certificate and click the disclosure triangle. Double-click ‘Private key’ under your distribution certificate. In the popup, go to the Access Control tab. Select ‘Allow all applications to access this item’. … Read more

What is the best way to store private data in react-native?

What is the best way to store private data in react-native? I would recommend using a library like react-native-keychain to store private data in react-native You can use it like that: // Generic Password, service argument optional Keychain .setGenericPassword(username, password) .then(function() { console.log(‘Credentials saved successfully!’); }); // service argument optional Keychain .getGenericPassword() .then(function(credentials) { console.log(‘Credentials … Read more

Querying iOS Keychain using Swift

Use withUnsafeMutablePointer function and UnsafeMutablePointer struct to retrieving the data, such as the following: var result: AnyObject? var status = withUnsafeMutablePointer(&result) { SecItemCopyMatching(queryAttributes, UnsafeMutablePointer($0)) } if status == errSecSuccess { if let data = result as NSData? { if let string = NSString(data: data, encoding: NSUTF8StringEncoding) { // … } } } it works fine … Read more