Code Monkey home page Code Monkey logo

Comments (6)

deni2s avatar deni2s commented on July 19, 2024 2

Xcode 8.2 beta fixed problems on simulator on iOS 10:

Keychain APIs work correctly in Simulator. (28338972)

http://adcdownload.apple.com/Developer_Tools/Xcode_8.2_beta/Release_Notes_for_Xcode_8.2_beta.pdf

from swiftkeychainwrapper.

jrendel avatar jrendel commented on July 19, 2024 1

I have solved this in the latest changes by adding an entitlements file (for debug only) that allows the keychain to work under iOS 10 simulators. The entitlement simple adds a get-task-allow true flag to a test app and the unit test target uses that as its host app.

If you are running into similar issues in your project using the keychain wrapper, you can add a similar entitlements file to your main project. If you use an entitlements file with get-task-allow true in it, I would only add it as a debug entitlement.

Alternatively, if you enable any app capabilities that generates an entitlements file, that should be sufficient.

from swiftkeychainwrapper.

jrendel avatar jrendel commented on July 19, 2024

The suggested fix to enable the Keychain Sharing entitlement doesn't work here since its not an option on a Framework target.

Installing the iOS 9.3 simulators and running tests against that works, so I'm going to move forward with that for now when running tests.

from swiftkeychainwrapper.

jrendel avatar jrendel commented on July 19, 2024

Similar issue/solution discussed here: #66 (comment)

from swiftkeychainwrapper.

jrendel avatar jrendel commented on July 19, 2024

Good to know!

from swiftkeychainwrapper.

jrendel avatar jrendel commented on July 19, 2024

This issue has been fixed in Xcode 8.2.

from swiftkeychainwrapper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.