Travis requires us to have a special file, the .travis.yml file, in our repository in order to give instructions for building the project.
Working with simple projects or libraries, you can leverage Travis configuration settings that allow you to build and test a project.
The basic file should have the following values:
language: objective-c
osx_image: xcode10.1
xcode_project: MyNewProject.xcodeproj # path to your xcodeproj folder
xcode_workspace : MyNewWorkspace.xcworkspace # use this instead of your project if you have a workspace
xcode_scheme: MyNewProjectTests # scheme for the tests
xcode_destination: platform=iOS Simulator,OS=12.0,name=iPhone XS
language: objective-c indicates the build will occur on macOS-based servers, and not on Linux-based ones.
For more information about the build configuration, head over to the Travis documentation at https://docs.travis-ci.com/user/languages/objective-c/.