Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My build works locally but not on Codemagic #2936

Open
dtrdic opened this issue Jan 21, 2025 · 0 comments
Open

My build works locally but not on Codemagic #2936

dtrdic opened this issue Jan 21, 2025 · 0 comments

Comments

@dtrdic
Copy link
Contributor

dtrdic commented Jan 21, 2025

Sometimes users say the build works perfectly locally, but not on Codemagic.
Running this sequence of commands usually helps them to reproduce the same error locally, as this issue usually occurs when dependencies are updated, but the lock file still points to the old versions.

pod cache clean --all
rm -rf ~/Library/Caches/CocoaPods
rm -rf Pods
rm -rf Podfile.lock
rm -rf ~/Library/Developer/Xcode/DerivedData/*
pod deintegrate
flutter clean
flutter pub get
pod install

This ensures your Flutter iOS project starts with a clean, and it forces CocoaPods to resolve and fetch the latest compatible versions of dependencies as defined in Podfile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant