Configuring more complex build scenarios

As your project grows, you may want to test on more simulators, different targets, or you may simply want more control over the build; you can always not use the default configuration suggestions and configure the different build steps on your own.

The command you will want to run on Travis should most probably use xcodebuild, the command-line tool that can build and test any Xcode project.

This is what the .travis.yml file should look like now:

language: objective-c
osx_image: xcode10.1
script:
- xcodebuild clean test -project MyNewProject.xcodeproj \
-scheme MyNewProject \
-destination "platform=iOS Simulator,OS=12.0,name=iPhone XS" \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO | xcpretty

Now that you are able to build any Xcode project, let's see how to work with pure Swift projects.