Skip to content

deps: Run pod update sqlite3 to resolve pod install error #143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

chrisbobbe
Copy link
Collaborator

In f28dd0b, we upgraded the Dart package sqlite3_flutter_libs past simolus3/sqlite3.dart@c16721003, which bumped the version of the sqlite3 pod published on CocoaPods (not to be confused with the Dart package with that same name on pub.dev).

So in flutter run targeting an iOS device, the pod install step would fail with output including the following:

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

      In Podfile:
        sqlite3_flutter_libs (from `.symlinks/plugins/sqlite3_flutter_libs/ios`) was resolved to 0.0.1, which depends on
          sqlite3 (~> 3.41.2)

    You have either:
     * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
     * changed the constraints of dependency `sqlite3` inside your development pod `sqlite3_flutter_libs`.
       You should run `pod update sqlite3` to apply changes you've made.

Flutter then gave its own output, along the lines of just that first bullet point:

Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.
To update the CocoaPods specs, run:
  pod repo update

Exception: Error running pod install

But actually, after studying both bullet points and trying their suggested fixes, it turns out the second one is right. So, follow it here by running pod update sqlite3.

In f28dd0b, we upgraded the Dart package sqlite3_flutter_libs
past simolus3/sqlite3.dart@c16721003, which bumped the version of
the `sqlite3` pod published on CocoaPods (not to be confused with
the Dart package with that same name on pub.dev).

So in `flutter run` targeting an iOS device, the `pod install` step
would fail with output including the following:

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

      In Podfile:
        sqlite3_flutter_libs (from `.symlinks/plugins/sqlite3_flutter_libs/ios`) was resolved to 0.0.1, which depends on
          sqlite3 (~> 3.41.2)

    You have either:
     * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
     * changed the constraints of dependency `sqlite3` inside your development pod `sqlite3_flutter_libs`.
       You should run `pod update sqlite3` to apply changes you've made.
```

Flutter then gave its own output, along the lines of just that first
bullet point:

```
Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.
To update the CocoaPods specs, run:
  pod repo update

Exception: Error running pod install
```

But actually, after studying both bullet points and trying their
suggested fixes, it turns out the second one is right. So, follow it
here by running `pod update sqlite3`.
@chrisbobbe chrisbobbe requested a review from gnprice June 1, 2023 17:45
@chrisbobbe chrisbobbe added the a-iOS Issues specific to iOS, or requiring iOS-specific work label Jun 1, 2023
@chrisbobbe
Copy link
Collaborator Author

Closing, as #148 was merged, superseding this.

@chrisbobbe chrisbobbe closed this Jun 2, 2023
@chrisbobbe chrisbobbe deleted the pr-pod-update-sqlite3 branch June 2, 2023 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-iOS Issues specific to iOS, or requiring iOS-specific work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant