Skip to content

ci: manually create .xcode.env.local to try and fix iOS build #10

ci: manually create .xcode.env.local to try and fix iOS build

ci: manually create .xcode.env.local to try and fix iOS build #10

Workflow file for this run

name: Build iOS
on:
push:
branches:
- master
paths:
- '.github/workflows/build-ios.yml'
- 'ios/**'
- '*.podspec'
- 'example/ios/**'
pull_request:
paths:
- '.github/workflows/build-ios.yml'
- 'ios/**'
- '*.podspec'
- 'example/ios/**'
jobs:
build:
name: Build iOS example app
runs-on: macOS-15
steps:
- uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
- name: Install pods
run: yarn example pods
- name: Install xcpretty
run: gem install xcpretty
- name: Set .xcode.env.local
run: echo "export NODE_BINARY=$(printf '%q' "$(node -e 'console.log(process.execPath)')")" > ./example/ios/.xcode.env.local
- name: Build app
run: "set -o pipefail && xcodebuild \
CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \
-derivedDataPath build -UseModernBuildSystem=YES \
-workspace VoiceKitExample.xcworkspace \
-scheme VoiceKitExample \
-sdk iphonesimulator \
-configuration Debug \
-destination 'platform=iOS Simulator,name=iPhone 16 Pro' \
build \
CODE_SIGNING_ALLOWED=NO | xcpretty"
working-directory: example/ios