Skip to content

deps: Fix issues in Podfile.lock #148

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

Merged
merged 2 commits into from
Jun 2, 2023

Conversation

chrisbobbe
Copy link
Collaborator

Supersedes PRs #92 and #143.

@chrisbobbe chrisbobbe added the a-iOS Issues specific to iOS, or requiring iOS-specific work label Jun 2, 2023
@chrisbobbe chrisbobbe requested a review from gnprice June 2, 2023 02:58
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`.

(Because I wrote this commit in my environment, the command also
made a few unrelated changes that match changes that `pod install`
has been wanting to make for me recently. I'll commit those changes
separately, with an explanation, next.)
These changes happen in my environment when I run `pod install`,
which I've just done for this commit.

Greg's and my Podfile.lock were disagreeing about these checksums.
It turns out they agree once one runs `flutter run` (for an iOS device),
rather than just `pod install`.  Discussion and diagnosis:
  zulip#92 (comment)

[greg: added mention of `flutter run`]
@gnprice
Copy link
Member

gnprice commented Jun 2, 2023

Thanks! Looks good; merging.

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.

2 participants