Update ios.yml

This commit is contained in:
Nihaal Sharma
2025-05-26 17:57:31 +01:00
committed by GitHub
parent 2ff96a7093
commit b378a831be

View File

@@ -14,21 +14,17 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set Default Scheme
run: |
scheme_list=$(xcodebuild -list -json | tr -d "\n")
default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]")
echo $default | cat >default
echo Using default scheme: $default
- name: Build - name: Build
env: env:
scheme: ${{ 'default' }} scheme: ${{ 'default' }}
platform: ${{ 'iOS Simulator' }} platform: ${{ 'iOS Simulator' }}
run: | run: |
xcodebuild -allowProvisioningUpdates xcodebuild \
# # xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959) -workspace NearFuture.xcodeproj
# device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"` -scheme NearFuture \
# if [ $scheme = default ]; then scheme=$(cat default); fi -sdk iphonesimulator \
# if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=18.5' \
# file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` clean build \
# xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" CODE_SIGNING_REQUIRED=NO \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_ALLOWED=NO