In iOS10, is it possible to access Keychain from within a static library/framework, for unit testing

萝らか妹 提交于 2019-12-04 10:38:24

You can try this workaround:

  1. Add an app target to your project.

  2. Enable keychain sharing and adding entitlement for the app you added.

  3. Go to the test target of your project. Under General->Testing->Host application, add the application you created.

  4. Run the tests

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!