diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index e13daf2..6fc09bb 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -9,8 +9,8 @@ on: jobs: build: name: Build and Test default scheme using any available iPhone simulator - runs-on: macos-latest - + runs-on: macos-14 + steps: - name: Checkout uses: actions/checkout@v3 @@ -20,6 +20,9 @@ jobs: 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 + - uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: '15.3' - name: check Xcode version run: /usr/bin/xcodebuild -version - name: Build @@ -32,7 +35,7 @@ jobs: if [ $scheme = default ]; then scheme=$(cat default); fi 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 file_to_build=`echo $file_to_build | awk '{$1=$1;print}'` - xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" + xcodebuild build -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device" - name: Test env: scheme: ${{ 'default' }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 45e3759..ff72f31 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,9 +27,4 @@ jobs: - name: Build iOS App run: | - xcodebuild clean build -workspace TestApp.xcworkspace -scheme TestApp -destination 'platform=iOS Simulator,name=iPhone 11,OS=17.0' - - - name: Run iOS Tests - run: | - xcodebuild test -workspace TestApp.xcworkspace -scheme TestApp -destination 'platform=iOS Simulator,name=iPhone 11,OS=17.0' - + xcodebuild clean build -scheme TestApp -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.0'