How to add custom framework to XC UI Test target.

Hi everyone!

Some time ago I faced with problems: 

  1. How to add XCTest framework to custom framework.
  2. How to create universol framework to use it with iOs simulators and real devices
  3. How to add this framework to XC UI Test target.

First two problems have been resolved enough fast. You can find articles here and here.

3th one was realy difficult. I asked iOs developers and nobody coudn't help me.

But anyway the way to resolve this issue has been found and I going on to share it with you.

  1. Go to UI Test Target Builds Phases and add your framework to Embed Frameworks and Copy Bundle Resources

  2. Go to App Target Builds Phases and add your framework to Embed Frameworks. Also add all frameworks which your framework uses. In my case only one framework - XCTest.framework.

After these simple steps your UI Tests will work as expected.

Have a good day!

Enjoy!