Skip to content

Latest commit

 

History

History
25 lines (12 loc) · 698 Bytes

how-to-test-static-framework.md

File metadata and controls

25 lines (12 loc) · 698 Bytes

How to test static framework in iOS?

My static framework provide a function which will access key chain inside the method, when I write a unit test method, it return errSecMissingEntitlement error code.

1

The definition of errSecMissingEntitlement was in the <Security/SecBase.h> framework as following:

errSecMissingEntitlement                 = -34018,    /* A required entitlement isn't present. */

How to solve this peoplem?

  1. In your framework project add a new target (select App template) as the host app.

2

  1. In you unit test target, General -> Testing select the host app.

3