Description of issue
I have a flutter GitHub repo which only has the following git ignore items. I am encountering several different issues that I believe are all related and am looking for some help with regards to what items should be added to gitignore to prevent issues when working on this repo with other collaborators.
- Build stuck in 'Compiling, linking and signing. This solutions works each time however each commit removes it for some reason, having me redownload it from firebase and adding the GoogleService-info.plist in XCode each time.
- CocoaPods's specs repository is too out-of-date to satisfy dependencies. This occurs each time a commit is made from either myself or another collaborator. I have to do this solution each time as well which does end up working.
I am not sure if this could potentially be resolved by updating my git ignore file. I found the flutter git ignore file here.
Current git ignore file - Android
/.gradle
/captures/
/gradlew
/gradlew.bat
/local.properties
GeneratedPluginRegistrant.java
# Remember to never publicly share your keystore.
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
key.properties
**/*.keystore
**/*.jks
Current git ignore file - iOS
*.mode1v3
*.mode2v3
*.moved-aside
*.pbxuser
*.perspectivev3
**/*sync/
.sconsign.dblite
.tags*
**/.vagrant/
**/DerivedData/
Icon?
**/Pods/
**/.symlinks/
profile
xcuserdata
**/.generated/
Flutter/App.framework
Flutter/Flutter.framework
Flutter/Flutter.podspec
Flutter/Generated.xcconfig
Flutter/ephemeral/
Flutter/app.flx
Flutter/app.zip
Flutter/flutter_assets/
Flutter/flutter_export_environment.sh
ServiceDefinitions.json
Runner/GeneratedPluginRegistrant.*
# Exceptions to above rules.
!default.mode1v3
!default.mode2v3
!default.pbxuser
!default.perspectivev3
Current git ignore file - Root
# Miscellaneous
*.class
*.log
*.pyc
*.swp
.DS_Store
.atom/
.buildlog/
.history
.svn/
migrate_working_dir/
# IntelliJ related
*.iml
*.ipr
*.iws
.idea/
# The .vscode folder contains launch configuration and tasks you configure in
# VS Code which you may wish to be included in version control, so this line
# is commented out by default.
.vscode/
# Flutter/Dart/Pub related
**/doc/api/
**/ios/Flutter/.last_build_id
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.packages
.pub-cache/
.pub/
**/build/
# Web related
lib/generated_plugin_registrant.dart
# Symbolication related
app.*.symbols
# Obfuscation related
app.*.map.json
# Android Studio will place build artifacts here
/android/app/debug
/android/app/profile
/android/app/release
I am trying to use Codemagic for CD/CI and noticed that when I build on my local machine, I get the errors above, resolved by implementing the above solutions. Ideally, I would like to push to main branch and have codemagic build off that without the above errors which I believe may be related to my git ignore file. Thank you