I’ve a flutter challenge and when cloning the repository and operating a flutter construct I get the error CocoaPods not put in or not in legitimate state.
. Fixing this isn’t an enormous deal following among the recommendation in this thread.
My private recipe to get the construct operating once more is as follows:
flutter clear
flutter pub get
rm -f ios/Podfile.lock
cd ios
pod deintegrate
pod repo replace
cd ..
flutter construct ios --release
This solves the difficulty within the department I simply checked out. If I then commit the adjustments and run a contemporary checkout I’m operating in the exact same error message once more.
So one way or the other the “fixing” steps create a change that isn’t dedicated within the repo however can be essential for constructing the flutter app.
Once I then examine the model the place the construct is working with a freshly checked out model these are the recordsdata distinctive to the “mounted” one:
/.dart_tool
/.flutter-plugins
/.flutter-plugins-dependencies
/.thought
/android/app/src/foremost/java
/android/native.properties
/construct
/fastlane/vendor
/ios/.symlinks
/ios/Flutter/Flutter.podspec
/ios/Flutter/Generated.xcconfig
/ios/Flutter/flutter_export_environment.sh
/ios/Pods
/ios/Runner/GeneratedPluginRegistrant.h
/ios/Runner/GeneratedPluginRegistrant.m
/ios/Runner.xcodeproj/challenge.xcworkspace/xcshareddata/swiftpm
/ios/Runner.xcworkspace/xcshareddata/swiftpm
/linux/flutter/ephemeral
/macos/Flutter/ephemeral
/macos/Runner.xcodeproj/challenge.xcworkspace/xcshareddata/swiftpm
/macos/Runner.xcworkspace/xcshareddata/swiftpm
/home windows/flutter/ephemeral
All of those are within the default .gitignore
from the Flutter workforce.
As I want to construct the app on Codemagic in a CI/CD and the identical error occurs on their construct server, I’m in search of a extra everlasting answer.
Any recommendations on recordsdata so as to add (Pods ?) or to take away (Podfile.lock ?) from the repository?
What I attempted up to now:
- Copying your entire ios listing from the mounted to the working model didn’t assist
- Simply operating
flutter clear
andflutter pub get
earlier than the construct didn’t assist.