Closed
Description
Describe the bug
Hi,
When I upgrade 'firebase_messaging' from 5.1.4 to 6.0.9, the flutter project does not build successfully anymore for iPhone 5c, running in 10.3.3. iPhone 5c has (32bit, ARMv7 underlying architecture). The project builds fine in iPhone X running in iOS 13 with 64bit, ARMv8-A.
Below is the 2 lines of build failure messages that are relevant.
Non-fat binary /Users/user/Library/Developer/Xcode/DerivedData/Runner-heeizlbsvjnmhfdbicwzezzvgbqu/Build/Products/Debug-iphoneos/Runner.app/Frameworks/grpcpp.framework/grpcpp is not armv7. Running lipo -info:
Non-fat file: /Users/user/Library/Developer/Xcode/DerivedData/Runner-heeizlbsvjnmhfdbicwzezzvgbqu/Build/Products/Debug-iphoneos/Runner.app/Frameworks/grpcpp.framework/grpcpp is architecture: arm64
The thing is that firebase_messaging
works totally fine in this old iPhone 5c model if I use version firebase_messaging
5.1.4.
To Reproduce
Steps to reproduce the behavior:
- Add
firebase_messaging: ^6.0.9
to pubspec.yaml dependency file in any flutter project. - Attempt to run the project in iPhone 5c device.
Expected behavior
Build should be successful, and I should be able to build for iPhone 5c, which would have been possible if I used version 5.1.4.
Additional context
flutter doctor -v
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.15 19A546d, locale en-US)
• Flutter version 1.12.13+hotfix.5 at /Users/user/Dev/flutter-active/flutter
• Framework revision 27321ebbad (4 weeks ago), 2019-12-10 18:15:01 -0800
• Engine revision 2994f7e1e6
• Dart version 2.7.0
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/setup/#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, set ANDROID_HOME to that location.
You may also want to add it to your PATH environment variable.
[✓] Xcode - develop for iOS and macOS (Xcode 11.3)
• Xcode at /Applications/xcode.app/Contents/Developer
• Xcode 11.3, Build version 11C29
• CocoaPods version 1.7.3
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/setup/#android-setup for detailed instructions).
[✓] Connected device (1 available)
• iPhone • 7fdb35be441429c092fad958bd96da882fc63322 • ios • iOS 10.3.3