diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3c8c605d0..350a8c034 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -308,10 +308,12 @@ jobs: --apple-package-name=io.agora.agoraRtcEngineExample \ --flutter-package-name=agora_rtc_engine \ --iris-ios-cdn-url=${IRIS_CDN_URL_IOS} - - uses: futureware-tech/simulator-action@v2 - with: - model: "iPhone 14 Pro Max" - os: "16.0" + - name: Create ios simulator + run: | + - xcrun simctl list + # We generate the screenshots base on the simulator "iPhone 13 Pro Max", so we set the SimDeviceType to iPhone 13 Pro Max. + # If you need to change the SimDeviceType, you may need to re-generate the screenshots first. + - xcrun simctl create Flutter-iPhone com.apple.CoreSimulator.SimDeviceType.iPhone-13-Pro-Max com.apple.CoreSimulator.SimRuntime.iOS-16-0 | xargs xcrun simctl boot - run: bash ci/rendering_test_ios.sh rendering_test_macos: