![]() Once you are in the root folder of your Xcode project, execute the above command with the details of your project. Change directory to a root folder of your Xcode project.To build Unit Tests from the command line you will need to use the xcodebuild command. ![]() ![]() The above command will print a list of available destinations you can use to build and run Xcode unit tests. To learn about the available destinations, open the terminal window on your Mac machine and use the below command: instruments -s devices When building or running Xcode tests you will use the -destination option to specify which iOS device and iOS version should be used. If you do not have a command-line tools package installed then you can download it from Apple Downloads Page. If the machine you want to build and run Xcode tests does already have Xcode 11 installed, then most likely you do already have the command-line tools installed. To be able to build and test your project using the terminal window you will need to have the Command Line Tools package installed on your machine. In this tutorial, you will learn how to build and run Xcode Unit Tests from the command line.
0 Comments
Leave a Reply. |