|
27 | 27 | platform: ['ios', 'android']
|
28 | 28 | include:
|
29 | 29 | - platform: ios
|
30 |
| - runtime: '16.0' |
| 30 | + runtime: 'latest' |
31 | 31 | device: 'iPhone 14'
|
32 | 32 | env:
|
33 | 33 | PLATFORM: ${{ matrix.platform }}
|
@@ -104,9 +104,8 @@ jobs:
|
104 | 104 | mkdir -p DerivedData
|
105 | 105 | defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES
|
106 | 106 | buildArgs=(
|
107 |
| - '-destination' 'platform=iOS Simulator,name=${{ matrix.device }}' |
| 107 | + '-destination' 'platform=iOS Simulator,OS=${{ matrix.runtime }},name=${{ matrix.device }}' |
108 | 108 | 'ONLY_ACTIVE_ARCH=yes'
|
109 |
| - '-sdk' 'iphonesimulator${{ matrix.runtime }}' |
110 | 109 | '-derivedDataPath' $(cd "DerivedData" ; pwd -P)
|
111 | 110 | )
|
112 | 111 | echo "buildArgs = ${buildArgs[@]}"
|
@@ -179,7 +178,7 @@ jobs:
|
179 | 178 | build-type: ['dev', 'production']
|
180 | 179 | include:
|
181 | 180 | - platform: ios
|
182 |
| - runtime: '16.0' |
| 181 | + runtime: 'latest' |
183 | 182 | device: 'iPhone 14'
|
184 | 183 | # exclude all rn versions lower than 0.70.0 for new architecture
|
185 | 184 | exclude:
|
@@ -265,14 +264,14 @@ jobs:
|
265 | 264 | run: |
|
266 | 265 | [[ "${{ matrix.build-type }}" == "production" ]] && CONFIG='Release' || CONFIG='Debug'
|
267 | 266 | echo "Building $CONFIG"
|
| 267 | + mkdir -p "DerivedData" |
268 | 268 | derivedData="$(cd "DerivedData" ; pwd -P)"
|
269 |
| - mkdir -p "$derivedData" |
270 | 269 | xcodebuild \
|
271 | 270 | -workspace RnDiffApp.xcworkspace \
|
272 | 271 | -configuration "$CONFIG" \
|
273 | 272 | -scheme RnDiffApp \
|
274 |
| - -destination 'platform=iOS Simulator,name=${{ matrix.device }}' \ |
| 273 | + -destination 'platform=iOS Simulator,OS=${{ matrix.runtime }},name=${{ matrix.device }}' \ |
275 | 274 | ONLY_ACTIVE_ARCH=yes \
|
276 |
| - -sdk 'iphonesimulator${{ matrix.runtime }}' \ |
| 275 | + -sdk 'iphonesimulator' \ |
277 | 276 | -derivedDataPath "$derivedData" \
|
278 | 277 | build
|
0 commit comments