Reputation: 83
grpc/grpc.h file not found error when building flutter project in xcode.
I reinstalled and updated all Cocoapods. No errors.
From Terminal, already ran flutter clean, flutter doctor (see below). flutter build ios returns the following message: Xcode build done. 5.4s Failed to build iOS app Error output from Xcode build:
** BUILD FAILED ** Xcode's output: ↳ In file included from /Users/.../ios/Pods/gRPC-C++/src/cpp/thread_manager/thread_manager.cc:19: In file included from /Users/.../ios/Pods/gRPC-C++/src/cpp/thread_manager/thread_manager.h:27: /Users/.../Documents/name_gifts_v2_working/ios/Pods/gRPC-C++/src/core/lib/gprpp/sync.h:22:10: fatal error: 'grpc/impl/codegen/port_platform.h' file not found
#include <grpc/impl/codegen/port_platform.h>
1 error generated.
Upvotes: 0
Views: 2114
Reputation: 1
Installing libgrpc++-dev
and libgrpc-dev
packages fixed this issue for me on Ubuntu. Try to find equivalent packages for your OS.
Upvotes: 0