Skip to content

[cloud_firestore] This plugin is not working correctly on iOS, grpcpp related #3133

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
YazeedAlKhalaf opened this issue Aug 10, 2020 · 3 comments
Labels
Needs Attention This issue needs maintainer attention.

Comments

@YazeedAlKhalaf
Copy link
Contributor

This is the error I get when trying to run ios app with cloud_firestore as a dependency.

Xcode build done.                                           214.5s
Failed to build iOS app
Error output from Xcode build:
↳
    2020-08-10 22:26:40.416 xcodebuild[33866:363361]  DTDeviceKit: deviceType from 35c01b97dacc7ab0aa241e20fb2593d9ce6c920f was NULL
    2020-08-10 22:26:40.487 xcodebuild[33866:363369]  DTDeviceKit: deviceType from 35c01b97dacc7ab0aa241e20fb2593d9ce6c920f was NULL
    ** BUILD FAILED **


Xcode's output:

    /Users/yazeed/development/code/myprojects/flutter_projects/beast/ios/Pods/gRPC-C++/src/cpp/common/version_cc.cc:22:10: fatal error: 'grpcpp/grpcpp.h' file not found
    #include <grpcpp/grpcpp.h>
             ^~~~~~~~~~~~~~~~~
    /Users/yazeed/development/code/myprojects/flutter_projects/beast/ios/Pods/gRPC-C++/src/cpp/common/version_cc.cc:22:10: note: did not find header 'grpcpp.h' in framework 'grpcpp'
    (loaded from '/Users/yazeed/development/code/myprojects/flutter_projects/beast/build/ios/Debug-iphoneos/gRPC-C++')
    1 error generated.
    /Users/yazeed/development/code/myprojects/flutter_projects/beast/ios/Pods/gRPC-C++/src/cpp/util/string_ref.cc:19:10: fatal error: 'grpcpp/support/string_ref.h' file not found
    #include <grpcpp/support/string_ref.h>
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/yazeed/development/code/myprojects/flutter_projects/beast/ios/Pods/gRPC-C++/src/cpp/util/string_ref.cc:19:10: note: did not find header 'support/string_ref.h' in
    framework 'grpcpp' (loaded from '/Users/yazeed/development/code/myprojects/flutter_projects/beast/build/ios/Debug-iphoneos/gRPC-C++')
    1 error generated.
    /Users/yazeed/development/code/myprojects/flutter_projects/beast/ios/Pods/gRPC-C++/src/cpp/util/status.cc:19:10: fatal error: 'grpcpp/support/status.h' file not found
    #include <grpcpp/support/status.h>
             ^~~~~~~~~~~~~~~~~~~~~~~~~
    /Users/yazeed/development/code/myprojects/flutter_projects/beast/ios/Pods/gRPC-C++/src/cpp/util/status.cc:19:10: note: did not find header 'support/status.h' in framework
    'grpcpp' (loaded from '/Users/yazeed/development/code/myprojects/flutter_projects/beast/build/ios/Debug-iphoneos/gRPC-C++')
    1 error generated.
    note: Using new build system
@TahaTesser
Copy link

Hi @YazeedAlKhalaf
Can you please provide your flutter doctor -v, your pubspec.yaml your flutter run --verbose and a complete reproducible minimal code sample
Thank you

@TahaTesser TahaTesser added the blocked: customer-response Waiting for customer response, e.g. more information was requested. label Aug 12, 2020
@YazeedAlKhalaf
Copy link
Contributor Author

I have figured it out, thanks. It was the cocoa pods cache which was having missing files. I deleted it and ran pod install again. Everything worked as usual

@google-oss-bot google-oss-bot added Needs Attention This issue needs maintainer attention. and removed blocked: customer-response Waiting for customer response, e.g. more information was requested. labels Aug 12, 2020
@TahaTesser
Copy link

Hi @YazeedAlKhalaf
Thanks given your last message I feel safe to close this issue, if you disagree please write in the comments and I will reopen it.
Thank you

@firebase firebase locked and limited conversation to collaborators Sep 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs Attention This issue needs maintainer attention.
Projects
None yet
Development

No branches or pull requests

3 participants