Skip to content

Add Privacy Manifest #21

Add Privacy Manifest

Add Privacy Manifest #21

Workflow file for this run

name: iOS starter workflow
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build and Test default scheme using any available iPhone simulator
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
env:
project: ${{ 'Paysafe_SDK' }}
scheme: ${{ 'Paysafe_SDK' }}
platform: ${{ 'iOS Simulator' }}
run: |
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
device=`xcrun simctl list devices 2>&1 | grep -oE 'iPhone [1-9][1-9][ ]*[a-zA-Z]*[ ]*[a-zA-Z]*'| head -1 | awk '{$1=$1;print}'`
xcodebuild build-for-testing -project "$project.xcodeproj" -scheme "$scheme" -destination "platform=$platform,name=$device"
- name: Test
env:
project: ${{ 'Paysafe_SDK' }}
scheme: ${{ 'Paysafe_SDK' }}
platform: ${{ 'iOS Simulator' }}
run: |
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
device=`xcrun simctl list devices 2>&1 | grep -oE 'iPhone [1-9][1-9][ ]*[a-zA-Z]*[ ]*[a-zA-Z]*'| head -1 | awk '{$1=$1;print}'`
xcodebuild test-without-building -project "$project.xcodeproj" -scheme "$scheme" -destination "platform=$platform,name=$device"