Skip to content

My build works locally but not on Codemagic #2936

Description

@dtrdic

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions