Skip to content

Commit

Permalink
fix: configure proper node_binary path for xcode
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurgeron committed Apr 4, 2024
1 parent 9c650ea commit 72466c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/ci-example-ios.yml
Expand Up @@ -31,6 +31,11 @@ jobs:
uses: actions/setup-node@v4
with:
cache: 'yarn'

- name: Configure Node.js path for Xcode
working-directory: IapExample
run: echo "export NODE_BINARY=$(which node)" > ios/.xcode.env

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.2.0'
Expand Down Expand Up @@ -80,14 +85,5 @@ jobs:
working-directory: IapExample/ios

- name: Build App
run: "set -o pipefail && xcodebuild \
CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \
-derivedDataPath build -UseModernBuildSystem=YES \
-workspace IapExample.xcworkspace \
-scheme IapExample \
-sdk iphonesimulator \
-configuration Debug \
-destination 'platform=iOS Simulator,name=iPhone 11 Pro' \
build \
CODE_SIGNING_ALLOWED=NO | xcpretty"
run: "set -o pipefail && i| xcpretty"
working-directory: IapExample/ios
3 changes: 2 additions & 1 deletion IapExample/ios/.xcode.env
Expand Up @@ -8,4 +8,5 @@
# Customize the NODE_BINARY variable here.
# For example, to use nvm with brew, add the following line
# . "$(brew --prefix nvm)/nvm.sh" --no-use
export NODE_BINARY=$(command -v node)
#export NODE_BINARY=/opt/homebrew/opt/node@20/bin/node

0 comments on commit 72466c9

Please sign in to comment.