Skip to content
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

"downloaded archive of binary target 'grpc' does not contain a binary artifact" #256

Open
lukehutch opened this issue May 14, 2024 · 5 comments

Comments

@lukehutch
Copy link

When I try to build a Flutter project in Xcode that uses Google APIs, the build fails with this error:

Running Xcode build...                                                  
Xcode archive done.                                         50.1s
Failed to build iOS app
Uncategorized (Xcode): Could not resolve package dependencies:
  downloaded archive of binary target 'grpc' from 'https://dl.google.com/firebase/ios/bin/grpc/1.62.2/rc0/grpc.zip' does not contain a
  binary artifact.
  fatalError

Encountered error while archiving for device.

I have tried many combinations of deleting Pod.lock, Pods, DerivedData, etc.; flutter clean; cleaning the build in Xcode, etc., but I can't seem to fix this.

I downloaded the zipfile, and it exists and contains binaries.

@lukehutch
Copy link
Author

Package.resolved contains:

    {
      "identity" : "grpc-binary",
      "kind" : "remoteSourceControl",
      "location" : "https://github.com/google/grpc-binary.git",
      "state" : {
        "revision" : "e9fad491d0673bdda7063a0341fb6b47a30c5359",
        "version" : "1.62.2"
      }
    },

and it does not contain any reference to a package grpc.

@albermoon
Copy link

do you find any solution? I have a similar problem

@lukehutch
Copy link
Author

Yes, the only thing that worked (after many days of searching online and trying a million things) was to move the ios directory to ios_old, then use flutter create to create a new blank ios directory, then manually copy back in the things that I had manually configured in the first project. Primarily I think what changed is that there was less Cocoapods integration in the recreated iOS project.

@danilocatalanoapsystem
Copy link

I have this problem. There is a solution?

@elcentaurx
Copy link

do you find any solution? I have a similar problem

did you find any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants