shorebirdtech / shorebird

Code Push for Flutter and other tools for Flutter businesses.
https://shorebird.dev
Other
1.97k stars 118 forks source link

Handling Patch Failures Due to Removed --force Option in Shorebird Version 1.0.0-rc.1 #1962

Closed Aio7Bot closed 3 weeks ago

Aio7Bot commented 3 weeks ago

I would like to ask about an error that occurs when executing a patch: [WARN] Your app contains native changes, which cannot be applied with a patch. Changed files: Products/Applications/Runner.app/Runner

The official documentation suggests using the --force option to handle this: https://docs.shorebird.dev/troubleshooting

However, version 1.0.0-rc.1 (April 4, 2024) has removed the --force option, which causes the execution of shorebird patch to fail. Could you advise on any possible solutions?

felangel commented 3 weeks ago

We have removed the --force flag but have added:

Let us know if that helps 👍

felangel commented 3 weeks ago

https://github.com/shorebirdtech/docs/commit/e201cdb2bb83dde8235630a88b003e509cf339f8 removed the reference to --force, apologies for the confusion!

Aio7Bot commented 3 weeks ago

Using --allow-native-diffs and --allow-asset-diffs instead of --force can work properly. Thank you.