jrendel / SwiftKeychainWrapper

A simple wrapper for the iOS Keychain to allow you to use it in a similar fashion to User Defaults. Written in Swift.
MIT License
1.59k stars 339 forks source link

34 Failing Tests? #69

Closed perlguy99 closed 7 years ago

perlguy99 commented 7 years ago

I'm running Xcode 8.0 (8A218a)

I downloaded the devel branch and opened up the xcodeproj file

Everything builds fine, but when I run the tests I get 34 failures. Basically, it looks like nothing is getting set.

Thanks!

jrendel commented 7 years ago

Yes, this is a known issue with the iOS 10 simulator that I don't have a good solution for yet. Running unit tests with an iOS 9.3 simulator should allow them to run successfully.

I'm tracking the issue here: https://github.com/jrendel/SwiftKeychainWrapper/issues/59

manojmahapatra commented 7 years ago

@jrendel what you can (probably) do is to add a test host app and set it as host application in your test target. Also make sure the host app should've keychain sharing capability turned on(which will eventually add a keychain entitlement). This way at least I made sure (in one of my framework) the unit tests execute in iOS 10 simulator.

Hope this helps!

jrendel commented 7 years ago

I finally got around to updating this. I added a host test app and tests are now running on iOS 10 simulators under Xcode 8.1