I have one host iOS project named MyProject
under workspace named MyWorkspace
. The workspace also have two linked projects named MyFramework1
and MyFramework2
. When I run unit test only host project's (i.e. MyProject's
) unit tests are getting run but I have unit tests for both frameworks. How can I run all the unit tests for all projects (including host app and frameworks) under workspace MyWorkspace
from CLI xcodebuild
command?
I am currently using,
xcodebuild -xctestrun some.xctestrun -destination "platform=iOS Simulator,name=iPhone 11" test-without-building
Finally, I am able to run all tests for my workspace. I just needed to,