Skip to content

Commit 7edc3d0

Browse files
committed
Try to clean the build
1 parent 0a29984 commit 7edc3d0

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

.github/workflows/e2e-tests.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,11 @@ jobs:
226226
run: yarn example build:ios
227227

228228
- name: Install Pods
229-
run: yarn pods
229+
run: |
230+
cd example/ios
231+
rm -rf Pods Podfile.lock
232+
cd ../..
233+
yarn pods
230234
231235
- name: Install Maestro CLI
232236
run: |
@@ -238,7 +242,19 @@ jobs:
238242
echo "Available iOS simulators:"
239243
xcrun simctl list devices
240244
241-
- name: Build iOS App
245+
- name: Clean build caches and regenerate
246+
run: |
247+
cd example/ios
248+
rm -rf ~/Library/Developer/Xcode/DerivedData/* || true
249+
rm -rf ~/Library/Caches/com.apple.dt.Xcode/* || true
250+
rm -rf build/ || true
251+
rm -rf .generated/ || true
252+
cd ../..
253+
yarn example build:ios
254+
cd example/ios
255+
xcodebuild clean -workspace example.xcworkspace -scheme example || true
256+
257+
- name: Build iOS App (Debug Mode)
242258
run: |
243259
yarn run-example-ios:release
244260

0 commit comments

Comments
 (0)