Closed mikeRozen closed 3 years ago
Hello, it looks like the plugin was unable to find the path to your version.yml Can you show me your folder structure?
Agree so I tried different paths, and had the same result. (../../version.yml , /../../version.yml, ./version.yml)
Setting your path to be one level up should work if you run fastlane [command]
from ios
folder:
flutter_version_manager(
arguments: "-patch",
yml: "../version.yml",
pubspec: "../pubspec.yaml")
You can read more about how fastlane handles directories here.
However, I strongly recommend that you move fastlane one level up so you can use it to build and deploy both android and iOS applications from one place. In order to do so, please follow these steps:
fastlane init
(ignore warnings about missing XCode directory)fastlane add_plugin flutter_version_manager
and follow the procedureversion.yml
file as specified herePluginfile
and add gem 'git'
at the endAppfile
and add test lane which you can find herefastlane test
from your command line and see if that works.Note: If you experience the .git: [!] path does not exist (ArgumentError) error, you should add optional git_repo
argument which should point out to the folder containing a .git folder.
Hi, So indeed according to docs every plugin runs in the root directory (which I believe in my case it's IOS or Android folder ), by changing to what you suggested and adding the _gitrepo the plugin finished successfully BUT it doesn't get uploaded to firebase for some reason I tried to change the minor, patch number but still, I don't see it in Firebase, any suggestions?
I haven't worked with firebase deployment that much, but I'd be best if you called flutter_version_manager
followed by flutter build ios
before build_app
to ensure that the build number and version name is applied correctly
Hi, I have the following issue: bundle exec fastlane ios_beta_app fails at the end I tried different paths for the version.yml the lane directory is: _/Users/myuser/AndroidStudioProjects/any_drivestudent/ios/fastlane while the version.yml and pubspec.yaml are in the root
Fastfile:
Please suggest what can be done? Thanks a lot