diff --git a/README.md b/README.md index 7392c4e..16c7e1d 100644 --- a/README.md +++ b/README.md @@ -194,6 +194,12 @@ There are a lot of options available that define how to build your app, for exam snapshot --scheme "UITests" --configuration "Release" --sdk "iphonesimulator" ``` +Reinstall the app before running `snapshot` + +```sh +snapshot --reinstall_app --app_identifier "tools.fastlane.app" +``` + For a list for all available options run ```sh diff --git a/lib/snapshot/options.rb b/lib/snapshot/options.rb index 92c5758..a6c7fb4 100644 --- a/lib/snapshot/options.rb +++ b/lib/snapshot/options.rb @@ -85,6 +85,7 @@ def self.available_options is_string: false), FastlaneCore::ConfigItem.new(key: :app_identifier, env_name: 'SNAPSHOT_APP_IDENTIFIER', + short_option: "-a", description: "The bundle identifier of the app to uninstall (only needed when enabling reinstall_app)", default_value: ENV["SNAPSHOT_APP_IDENTITIFER"] || CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)),