Travel Sample Mobile App

Pre-requisites

  • Xcode 10.1+: downloadable latest version from the Mac App Store.

Getting Started

  • Clone the "master" branch of the Travel Sample app from GitHub. We are doing a shallow pull with depth as 1 to speed the cloning process.

    git clone -b master --depth 1 https://github.com/couchbaselabs/mobile-travel-sample.git

    If you are building using Xcode 10.1, you will have to download the Swift 4.2 compatible version of Couchbase Lite framework

  • In Terminal, navigate to the TravelSample directory.

    cd /path/to/mobile-travel-sample/ios/TravelSample
  • Run the following script to download and install Couchbase Lite. A script is provided for different versions of Xcode and Swift.

    • Xcode 10

    sh install_10.sh
  • Open the TravelSample.xcodeproj using Xcode

  • Build and run the project using simulator

  • Verify that the login screen appears in the simulator