grpc: gRPC-Core couldn't find openssl files.
I am building a Flutter App. But when I build IOS app via XCode, I got an error message:
'openssl/bio.h' file not found
This error message from a file called “src/core/tsi/alts/crypt/aes_gcm.cc” which under gRPC-Core.
However, I do have openssl installed in my Mac.
when I run: openssl version, I got the following info.
openssl version
OpenSSL 1.0.2r 26 Feb 2019
I also have openssl in my project folder, When I run: sudo find ./ -name “bio.h” in my project folder, I got the following info
.//Pods/BoringSSL-GRPC/include/openssl/bio.h
If I manually include “bio.h” file to “src/core/tsi/alts/crypt/aes_gcm.cc”, I will get another error message and tells me “pb_decode.h” file not found. It seems endless. And manually include files doesn’t fix this problem.
So can anyone help me?
What version of gRPC and what language are you using?
gRPC-C++ (0.0.6) gRPC-Core (1.17.0)
What operating system (Linux, Windows,…) and version?
Mac 10.14.4
What runtime / compiler are you using (e.g. python version or version of gcc)
XCode
pod install information
ShijiedeMini:ios shijiesun$ pod install
Analyzing dependencies
Fetching podspec for Flutter
from .symlinks/flutter/ios
Fetching podspec for audioplayers
from .symlinks/plugins/audioplayers/ios
Fetching podspec for barcode_scan
from .symlinks/plugins/barcode_scan/ios
Fetching podspec for cloud_firestore
from .symlinks/plugins/cloud_firestore/ios
Fetching podspec for connectivity
from .symlinks/plugins/connectivity/ios
Fetching podspec for device_info
from .symlinks/plugins/device_info/ios
Fetching podspec for firebase_auth
from .symlinks/plugins/firebase_auth/ios
Fetching podspec for firebase_core
from .symlinks/plugins/firebase_core/ios
Fetching podspec for firebase_database
from .symlinks/plugins/firebase_database/ios
Fetching podspec for firebase_messaging
from .symlinks/plugins/firebase_messaging/ios
Fetching podspec for firebase_storage
from .symlinks/plugins/firebase_storage/ios
Fetching podspec for flutter_facebook_login
from .symlinks/plugins/flutter_facebook_login/ios
Fetching podspec for flutter_local_notifications
from .symlinks/plugins/flutter_local_notifications/ios
Fetching podspec for flutter_sound
from .symlinks/plugins/flutter_sound/ios
Fetching podspec for flutter_statusbar
from .symlinks/plugins/flutter_statusbar/ios
Fetching podspec for fluttertoast
from .symlinks/plugins/fluttertoast/ios
Fetching podspec for fluwx
from .symlinks/plugins/fluwx/ios
Fetching podspec for geolocator
from .symlinks/plugins/geolocator/ios
Fetching podspec for google_api_availability
from .symlinks/plugins/google_api_availability/ios
Fetching podspec for google_maps_flutter
from .symlinks/plugins/google_maps_flutter/ios
Fetching podspec for google_sign_in
from .symlinks/plugins/google_sign_in/ios
Fetching podspec for image_picker
from .symlinks/plugins/image_picker/ios
Fetching podspec for path_provider
from .symlinks/plugins/path_provider/ios
Fetching podspec for permission_handler
from .symlinks/plugins/permission_handler/ios
Fetching podspec for screen
from .symlinks/plugins/screen/ios
Fetching podspec for share
from .symlinks/plugins/share/ios
Fetching podspec for shared_preferences
from .symlinks/plugins/shared_preferences/ios
Fetching podspec for sqflite
from .symlinks/plugins/sqflite/ios
Fetching podspec for stripe_payment
from .symlinks/plugins/stripe_payment/ios
Fetching podspec for url_launcher
from .symlinks/plugins/url_launcher/ios
Fetching podspec for video_player
from .symlinks/plugins/video_player/ios
Downloading dependencies
Installing Bolts (1.9.0)
Installing BoringSSL-GRPC (0.0.2)
Installing FBSDKCoreKit (4.39.1)
Installing FBSDKLoginKit (4.39.1)
Installing FMDB (2.7.5)
Installing Firebase (5.20.2)
Installing FirebaseAnalytics (5.8.1)
Installing FirebaseAnalyticsInterop (1.2.0)
Installing FirebaseAuth (5.4.2)
Installing FirebaseAuthInterop (1.0.0)
Installing FirebaseCore (5.4.1)
Installing FirebaseDatabase (5.1.1)
Installing FirebaseFirestore (1.2.1)
Installing FirebaseInstanceID (3.8.1)
Installing FirebaseMessaging (3.5.0)
Installing FirebaseStorage (3.1.1)
Installing Flutter (1.0.0)
Installing GTMSessionFetcher (1.2.1)
Installing GoogleAppMeasurement (5.8.1)
Installing GoogleMaps (3.1.0)
Installing GoogleSignIn (4.4.0)
Installing GoogleToolboxForMac (2.2.0)
Installing GoogleUtilities (5.8.0)
Installing MTBBarcodeScanner (5.0.11)
Installing Protobuf (3.7.0)
Installing Reachability (3.2)
Installing Stripe (15.0.1)
Installing audioplayers (0.0.1)
Installing barcode_scan (0.0.1)
Installing cloud_firestore (0.0.1)
Installing connectivity (0.0.1)
Installing device_info (0.0.1)
Installing firebase_auth (0.0.1)
Installing firebase_core (0.0.1)
Installing firebase_database (0.0.1)
Installing firebase_messaging (0.0.1)
Installing firebase_storage (0.0.1)
Installing flutter_facebook_login (0.0.1)
Installing flutter_local_notifications (0.0.1)
Installing flutter_sound (0.0.1)
Installing flutter_statusbar (0.0.1)
Installing fluttertoast (0.0.2)
Installing fluwx (0.0.1)
Installing gRPC-C++ (0.0.6)
Installing gRPC-Core (1.17.0)
Installing geolocator (3.0.1)
Installing google_api_availability (2.0.0)
Installing google_maps_flutter (0.0.1)
Installing google_sign_in (0.0.1)
Installing image_picker (0.0.1)
Installing leveldb-library (1.20)
Installing nanopb (0.3.901)
Installing path_provider (0.0.1)
Installing permission_handler (3.0.0)
Installing screen (0.0.1)å
Installing share (0.5.2)
Installing shared_preferences (0.0.1)
Installing sqflite (0.0.1)
Installing stripe_payment (0.0.1)
Installing url_launcher (0.0.1)
Installing video_player (0.0.1)
Generating Pods project
Integrating client project
Pod installation complete! There are 34 dependencies from the Podfile and 61 total pods installed.
[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target Runner
to Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig
or include the Pods/Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig
in your build configuration (Flutter/Release.xcconfig
).
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 23 (13 by maintainers)
I see. Cocoapods pulled the same thing out of your cache. Could you clear your Cocoapods cache (`pod cache clean gRPC-Core’) and try again the previous commands?
It works!!! Thank you so so so much!! You are awesome!! @muxi