#!/usr/bin/env sh

set -eu

xcodebuild archive \
  -scheme ImageViewer \
  -configuration Release \
  -archivePath ./build/ImageViewer.xcarchive \
  -destination 'generic/platform=iOS'

xcodebuild -exportArchive \
  -archivePath ./build/ImageViewer.xcarchive \
  -exportOptionsPlist ./ExportOptions.plist \
  -exportPath ./build/ipa
