braze-inc / braze-flutter-sdk

Public repo for the Braze Flutter SDK
Other
15 stars 29 forks source link

Upgrade to 5.0.0 seems broken #51

Closed JordyLangen closed 1 year ago

JordyLangen commented 1 year ago

After updating our plugin dependency to 5.0.0 and running pod install –repo-update I get the following:

[!] CocoaPods could not find compatible versions for pod "BrazeLocation":
  In snapshot (Podfile.lock):
    BrazeLocation (= 5.12.0, ~> 5.12.0)

  In Podfile:
    braze_plugin (from `.symlinks/plugins/braze_plugin/ios`) was resolved to 5.0.0, which depends on
      BrazeLocation (~> 6.0.0)

You have either:
 * changed the constraints of dependency `BrazeLocation` inside your development pod `braze_plugin`.
   You should run `pod update BrazeLocation` to apply changes you've made.
JordyLangen commented 1 year ago

Removing the Podfile.lock seems to fix it, but that should not be needed.

hokstuff commented 1 year ago

Hi @JordyLangen,

In the Cocoapods docs for pod install, it notes that the command will take into account the specific version inside the Podfile.lock instead of updating to the latest version. Adding the flag --repo-update will run pod repo update prior to the command, but it will still use the pod install command afterwards.

In this case, it sounds like you'd want to use the pod update command to ensure that the latest version of the Braze pod is used instead of the version in Podfile.lock. Let us know if that resolves the issue - thanks!

JordyLangen commented 1 year ago

We did not seem to have to do this in the past, anyway thanks for the reply.