evgenyneu / keychain-swift

Helper functions for saving text in Keychain securely for iOS, OS X, tvOS and watchOS.
MIT License
2.82k stars 345 forks source link

Cocoapods and osx #69

Open jethmalani opened 6 years ago

jethmalani commented 6 years ago

Please consider submitting the following information (if relevant):

How do we install this library if we are using OS X not iOS. It works fine for iOS but when I do pod install for an OS X app, it does not install. This is when using cocoa pods. swift 4 and latest version of Xcode and cocoa pods.

evgenyneu commented 6 years ago

Hi @jethmalani, thanks for reporting the issue but I could not reproduce it. I created a new MacOS app in Xcode 9, added KeychainSwift library to the Podfile and ran pod install. It did install the library for me and it was working. Here is my Podfile.

use_frameworks!
target 'DemoKeychainSwiftMacOS'
pod 'KeychainSwift', '~> 10.0'

I'm also attaching the demo app that I created. Please let me know how it goes.

DemoKeychainSwiftMacOS.zip