Skip to content

Commit 87fe149

Browse files
committed
Fix workflow: properly clean CocoaPods when testing SPM
1 parent d719767 commit 87fe149

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/permission_handler_apple.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,24 @@ jobs:
6666
run: |
6767
if [ "${{ matrix.dependency-manager }}" = "spm" ]; then
6868
flutter config --enable-swift-package-manager
69+
# Remove CocoaPods integration for pure SPM testing
70+
cd ${{env.example-directory}}/ios
71+
if [ -f Podfile ]; then
72+
rm -f Podfile
73+
fi
74+
if [ -f Podfile.lock ]; then
75+
rm -f Podfile.lock
76+
fi
77+
if [ -d Pods ]; then
78+
rm -rf Pods
79+
fi
6980
else
7081
flutter config --no-enable-swift-package-manager
82+
# Restore Podfile for CocoaPods testing
83+
cd ${{env.example-directory}}/ios
84+
if [ -f Podfile.backup ]; then
85+
cp Podfile.backup Podfile
86+
fi
7187
fi
7288
7389
# Build iOS version of the example App

0 commit comments

Comments
 (0)