Hi Everyone,
Yesterday I posted about the Flutter firebase, I had pages of errors popping up, and 'upgrading flutter' seemed to finally fix this, and so I've got it down to one issue now.
But does it want to build... Nope... The last build I did was last month and not touched it since then. I'm doing a database integration with Firebase Core & Firebase Auth, apart from that nothing else.
Both my builders broke Gradle / Xcode.....
Managed to get the majority of the errors fixed apart from the Flutter H issue. I've also posted this post over to the Flutter Firebase Group for help.
I have tried every possible solution that I've found online through Google & Stack.
- Adding/removing flutter
- deleting. / rebuilding the pod/cache / derived data / deleted pods / upgraded cocoa pods
- adding/removing android studio
- typing in RM commands
- tried 'fixing with dart' no issues to fix
- tried pasting the 'Header H file' - no luck
- tried deleting the ios folder... rebuilding it.]
- Switching from Stable to Master.. No luck.
Another Weird Issue is that - I could 'disable the package' in Yaml, but then the error moves on saying the same issue with another 'package'.
so the only conclusion I can come to is that, could there still be issues with Flutter and the Apple M1 Chip?
From what I gathered from other users recently this issue has started cropping up from June onwards with developers of the Apple M1 Chip..
Any information would be greatly appreciated.
kindest regards,
ad % flutter run
Launching lib/main.dart on iPhone 12 in debug mode...
Running pod install... 7.2s
Running Xcode build...
Xcode build done. 8.2s
Failed to build iOS app
Error output from Xcode build:
↳
objc[88910]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1f654c188) and ?? (0x11694c2b8). One of the two will
be used. Which one is undefined.
objc[88910]: Class AMSupportURLSession is implemented in both ?? (0x1f654c1d8) and ?? (0x11694c308). One of the two will be used.
Which one is undefined.
** BUILD FAILED **
Xcode's output:
↳
In file included from /Users/lyntree/flutter/.pub-cache/hosted/pub.dartlang.org/share-2.0.4/ios/Classes/FLTSharePlugin.m:5:
/Users/lyntree/flutter/.pub-cache/hosted/pub.dartlang.org/share-2.0.4/ios/Classes/FLTSharePlugin.h:5:9: fatal error:
'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete
Could not build the application for the simulator.
Error launching application on iPhone 12.