grpc / grpc-ios

gRPC for iOS
Apache License 2.0
37 stars 22 forks source link

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

Open lukehutch opened 1 month ago

lukehutch commented 1 month ago

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 commented 1 month ago

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 commented 3 weeks ago

do you find any solution? I have a similar problem

lukehutch commented 3 weeks ago

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 commented 1 week ago

I have this problem. There is a solution?