I'm setting up my Flutter build environment on my new M2 MacBook Air. I'm trying to build our company app, which builds fine on my i7 MacBook Pro. I'm getting the error below:
Swift Compiler Error (Xcode): Compiling for iOS 11.0, but module 'amplify_core' has a minimum deployment target of iOS 13.0:
/source/code/path/build/ios/Debug-dev-iphonesimulator/amplify_core/amplify_core.framework/Modules/amplify_core.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
~/flutter/.pub-cache/hosted/pub.dartlang.org/amplify_analytics_pinpoint_ios-0.5.1/ios/Classes/FlutterAnalytics.swift:22:7
Could not build the application for the simulator.
Error launching application on iPhone SE (3rd generation).
The above error says its building for the x86_64 simulator on my M2? Am I missing a setting somewhere?
EDIT
I can run open ios/Runner.xcworkspace and change the Minimum deployment version of amplify_core to 11.0, but I need a real solution.
