Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode automatically builds test target as a part of iOS project

Tags:

xcode

ios

I'm developing a React Native mobile app for iOS. I had an error that was caused by the Tests target, but I spent 2 days trying to "fix" my main target before I discovered the problem in the Tests target.

To solve this, I would like to be able to build, debug, and deploy my app without bundling it with the "Tests" target. In other words I want to deal with them separately so I don't have to fix bugs in the Tests target before I can run my app on a device, or deploy it.

How do I do that?

like image 260
Scott Terry Avatar asked Jun 24 '17 17:06

Scott Terry


1 Answers

In your build scheme, make sure that the test target is checked only for "Test" in the "Build tab"

Check Here

like image 200
Bhimsen Padalkar Avatar answered Sep 19 '22 13:09

Bhimsen Padalkar