Skip to content

Commit

Permalink
Update ios.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nathantannar4 authored Nov 28, 2023
1 parent b33e410 commit 310b86b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ jobs:
run: sudo xcode-select -p
- name: Get Swift Version
run: swift --version
- name: Disable SPM Plugin Validation
run: defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES
- name: Build
env:
platform: ${{ 'iOS Simulator' }}
run: |
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"`
xcodebuild -skipPackagePluginValidation build -scheme "Example" -project Example/Example.xcodeproj -destination "platform=$platform,name=$device"
xcodebuild build -scheme "Example" -project Example/Example.xcodeproj -destination "platform=$platform,name=$device"

0 comments on commit 310b86b

Please sign in to comment.