I am encountering points when constructing my Flutter iOS undertaking with flavors on MacBook M3 Professional. I’ve adopted the official Flutter documentation for organising flavors, however I am nonetheless operating into issues. Listed here are the small print:
Downside Description:
When trying to construct the undertaking on a daily iOS simulator, the construct fails.
The undertaking builds efficiently when utilizing a Simulator operating with Rosetta.
The problem persists even after following the steps outlined within the Flutter documentation for configuring flavors.
Steps to Reproduce:
-
Arrange flavors in Flutter as per Flutter’s official documentation.
-
Run the undertaking on a daily iOS simulator.
-
Observe the construct failure.
-
Run the undertaking on a Rosetta-enabled simulator.
-
Observe the profitable construct.
Setting:
MacBook M3 Professional
- macOS 14.5 23F79 darwin-arm64
- Xcode Model 15.4 (15F31d)
- Flutter 3.22.2
Error Messages:
-
Module ‘audio_session‘ not discovered
-
Exhibiting Current Errors Solely
Library/Developer/Xcode/DerivedData/Runner-bzqtcihjgfucvgbwydvyjtlywqen/Construct/Merchandise/Debug-iphonesimulator/connectivity_plus/connectivity_plus.framework/Headers/connectivity_plus-Swift.h:341:2: Unsupported Swift structure -
Error (Xcode): Undefined image: OBJC_CLASS$_FLTGoogleMapsPlugin
Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)
What I’ve Tried:
Re-following the official documentation to make sure flavors are accurately arrange.
Working the undertaking on completely different simulators.
Cleaned the construct and derived knowledge folders in Xcode.
Verified the Swift and Goal-C bridging headers.
Questions:
Why does the undertaking solely construct efficiently on a Rosetta-enabled simulator and never on a daily one?
Are there further configurations required for MacBook M3 Professional or Apple Silicon that I is likely to be lacking?
Has anybody confronted comparable points with Flutter flavors on an M3 Professional machine, and the way did you resolve them?
Any insights or ideas could be tremendously appreciated!