Reply to How do I unittest a command line application? Add File -> New -> File -> Unit Test Case Class Add source files to both targets: project and tests Developer Tools & Services Xcode Mar ’24