Can't build the application on iOS
Closed this issue · 3 comments
nobuhiko702 commented
Issue Description
After adding mp_audio_stream as a dependency, it seems to create a compilation conflict with the cloud_firestore plugin, resulting in the following error:
Launching lib/main.dart on iPhone 14 Pro Max in debug mode...
Running pod install... 12.6s
Running Xcode build...
Xcode build done. 20.2s
Failed to build iOS app
Lexical or Preprocessor Issue (Xcode): 'grpc/support/port_platform.h' file not found
/GitHub/test/ios/Pods/gRPC-C++/src/core/lib/gpr/string.h:21:9
Could not build the application for the simulator.
Error launching application on iPhone 14 Pro Max.
Steps to Reproduce
flutter create test
cd test
flutter pub add mp_stream_audio
flutter pub add cloud_firestore
flutter run
Expected Behavior
Build Success
Actual Behavior
Failed to build iOS app
Environment Information
- Operating System: macOS
- Development Environment: iOS emulator
Additional Information
The following entries appear in the Podfile.lock, and I think this might be the cause of the problem:
- "gRPC-C++ (1.50.1)":
- "gRPC-C++/Implementation (= 1.50.1)"
- "gRPC-C++/Interface (= 1.50.1)"
reki2000 commented
I tried following on Flutter 3.10.6, but it hangs while pod install even without mp_audio_stream. couldn't dig the problem...
$ flutter create test
$ cd test
$ flutter pub add cloud_firestore
$ flutter run
Launching lib/main.dart on iPhone SE (3rd generation) in debug mode...
Running pod install...
nobuhiko702 commented
I tried following on Flutter 3.10.6, but it hangs while pod install even without mp_audio_stream. couldn't dig the problem...
$ flutter create test $ cd test $ flutter pub add cloud_firestore $ flutter run Launching lib/main.dart on iPhone SE (3rd generation) in debug mode... Running pod install...
Pod installing, need a little more waiting 🤣 (probably)
nialljawad96 commented
Was this ever solved? I'm having the same sad issue @nobuhiko702