

The -only-testing and -skip-testing options, which are optional, allow you to run only a specific test and to skip a test, respectively. It consists of a set of comma-separated key=value pairs, which are dependent upon the the device, simulator, or Mac being used. It takes an argument, which describes the device, simulator, or Mac to use as a destination. The -destination option allows you to specify a destination for your unit tests. It is required when there are multiple Xcode projects in the same directory and optional, otherwise. Use this option when your scheme is contained in an Xcode project. The -project option allows you to specify the name of your Xcode project. Use this option when your scheme is contained in an Xcode workspace. The -workspace option allows you to specify the name of your workspace.

See How do I implement the Build For Testing and Test Without Building features from the command line? for more information about build-for-testing and test-without-building actions. The test action requires specifying a scheme and a destination. Follow these steps, entering your username and password when prompted.Xcodebuild test-without-building -xctestrun. You may be prompted to install additional components the first time Xcode runs. Next, click on the Xcode icon in the dock to launch the tool. Since you will be using this tool frequently, take this opportunity to drag and drop it into your dock for easier access in the future. To start up Xcode, open the Finder and search for Xcode. Having successfully installed the SDK and Xcode, the next step is to launch it to create a sample iOS 16 app.

Launch the App Store on your macOS system, enter Xcode into the search box, and click on the Get button to initiate the installation. The best way to obtain the latest Xcode and iOS SDK versions is to download them from the Apple Mac App Store. If the “About This Mac” dialog indicates that an older macOS is installed, click on the More Info… button to display the System Settings dialog, followed by the General -> Software Update option to check for operating system upgrade availability.
