Owen McGirr
Owen McGirr

Reputation: 229

How do you test an iOS framework

I am developing an iOS framework. My question is how do I test it in a dummy app. Ideally in the same project window

Upvotes: 1

Views: 1762

Answers (1)

ObjectAlchemist
ObjectAlchemist

Reputation: 1127

Technically you have to split into two scenarios.

  1. Your framework contains functionality only.
    In that case I suggest to add a unit test target and test your framework by writing unit tests.

  2. Your framework contains a ui component.
    In that case I suggest to add an application target and name it ExampleApp or something like that. In that app you can implement a visual example.

Both scenarios are used in open source GitHub repositories.

Upvotes: 1

Related Questions