-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Description
Describe the bug
Unable to build the iOS app of a new/fresh flutter project with cloud_firestore dependency. Works fine on android.
Some included header files for the pod BoringSSL-GRPC are missing.
To Reproduce
Steps to reproduce the behavior:
- Create a new flutter project
flutter create example - Add latest version of
cloud_firestore(^0.13.6) topubspec.yaml - Run
flutter run - Failed to build iOS app
Expected behavior
Building iOS app works fine.
Additional context
I also have a flutter project I created some months back and in that project upgrading to the latest version of cloud_firestore is no problem. Only for new projects I create I have that issue.
As far as I can tell adding the GoogleService-Info.plist file changes nothing. I already tried creating a new flutter project, registering my iOS app on firebase and adding the GoogleService-Info.plist file. This resulted in the same error.
Output of flutter run:
Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Running Xcode build...
Xcode build done. 41,3s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Volumes/IVLIVS_DEV/_DEV/tinyapps/example/ios/Pods/BoringSSL-GRPC/src/crypto/asn1/a_octet.c:57:10: fatal error: 'openssl/asn1.h' file not found
#include <openssl/asn1.h>
^~~~~~~~~~~~~~~~
1 error generated.
/Volumes/IVLIVS_DEV/_DEV/tinyapps/example/ios/Pods/BoringSSL-GRPC/src/crypto/asn1/a_print.c:57:10: fatal error: 'openssl/asn1.h' file not found
#include <openssl/asn1.h>
^~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.
Flutter doctor
Run flutter doctor and paste the output below:
Doctor summary (to see all details, run flutter doctor -v):
Unable to find any JVMs matching version "1.8".
Unable to find any JVMs matching version "1.8".
[✓] Flutter (Channel dev, 1.19.0-2.0.pre, on Mac OS X 10.15.5 19F101, locale de-DE)
⣟Unable to find any JVMs matching version "1.8".
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] Connected device (3 available)
! Doctor found issues in 1 category.