Flutter app, cannot build the app in simulator - iphone

First time posting on stackoverflow. I feel like I'm entering into the "club" lol.
So I'm trying to launch this flutter app on iOS (app already on Google Play).
But somehow, I can't run my app on my iOS Simulator, idk why.
the first review of apple was about a crash happening when they try to do a selfie (as required in the app).
flutter doctor is all OK
Here is what I obtain when I do flutter run output in my terminal:
Launching lib/main.dart on iPhone 13 in debug mode... Running pod
install... 1,727ms Running
Xcode build... Xcode
build done. 4.8s Failed to
build iOS app Error output from Xcode build: ↳
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder,
name:Any
iOS Simulator Device }
{ platform:iOS Simulator, id:D424EE87-EB4D-4A29-9E94-DC59C99BBA35, OS:15.2, name:iPad (9th generation) }
{ platform:iOS Simulator, id:7765E563-ADEF-4A57-8E0B-E691DB98C9F1, OS:15.2, name:iPad Air (4th generation) }
{ platform:iOS Simulator, id:A2610203-CC63-4CF4-B46A-3FFF24E717FF, OS:15.2, name:iPad Pro (9.7-inch) }
{ platform:iOS Simulator, id:A43F9F16-5269-47DD-B798-16BA558D3207, OS:15.2, name:iPad Pro (11-inch) (3rd
generation) }
{ platform:iOS Simulator, id:94F13A16-0D1B-40BB-89A6-309B7F46CFEB, OS:15.2, name:iPad Pro (12.9-inch) (5th
generation) }
{ platform:iOS Simulator, id:369BDA2B-D9AB-440D-B782-3E39D8C9CEC1, OS:15.2, name:iPad mini (6th generation) }
{ platform:iOS Simulator, id:E45C9138-95FD-4987-AE59-B461B9E4FC8C, OS:15.2, name:iPhone 8 }
{ platform:iOS Simulator, id:95E79F73-615B-47F2-8D23-569D79D5ACC0, OS:15.2, name:iPhone 8 Plus }
{ platform:iOS Simulator, id:409F076D-F8F3-41E7-8517-193BB48EA3E8, OS:15.2, name:iPhone 11 }
{ platform:iOS Simulator, id:B01B72C7-9CC4-4A17-B04C-1F131D786EE6, OS:15.2, name:iPhone 11 Pro }
{ platform:iOS Simulator, id:E705E2B3-8B05-43CF-8B00-0092A4D102A9, OS:15.2, name:iPhone 11 Pro Max }
{ platform:iOS Simulator, id:AFA7446A-7FA9-424B-9ECF-0D5A4B52C1A3, OS:15.2, name:iPhone 12 }
{ platform:iOS Simulator, id:DB221437-B4E7-4AC9-BBD6-032CFE0E0B1A, OS:15.2, name:iPhone 12 Pro }
{ platform:iOS Simulator, id:AC2B37A8-B4CB-434A-A972-DBD779D1577A, OS:15.2, name:iPhone 12 Pro Max }
{ platform:iOS Simulator, id:2F454258-F53C-48FD-9FBF-2942CBCC6CE4, OS:15.2, name:iPhone 12 mini }
{ platform:iOS Simulator, id:EBDF7EE2-F8C9-46F5-9253-09EBF510617E, OS:15.2, name:iPhone 13 }
{ platform:iOS Simulator, id:82BC8558-2A46-40F0-993D-F39F211EFBD7, OS:15.2, name:iPhone 13 Pro }
{ platform:iOS Simulator, id:3277A604-1D73-45C3-87AD-77A529F023B2, OS:15.2, name:iPhone 13 Pro Max }
{ platform:iOS Simulator, id:E58CD9B9-F99A-4477-9CC3-BED299852480, OS:15.2, name:iPhone 13 mini }
{ platform:iOS Simulator, id:9609638C-212C-4BAE-979E-77CAC7060F19, OS:15.2, name:iPhone SE (2nd generation) }
{ platform:iOS Simulator, id:278C8EA3-F49D-4BF3-961E-CEBCF98F3094, OS:15.2, name:iPod touch (7th generation) }
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS
Device }
** BUILD FAILED **
Xcode's output: ↳
In file included from
/Users/sarahmellouki/Development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.0+4/ios/Classes/FLT
ImagePickerPlugin.m:5:
/Users/sarahmellouki/Development/flutter/.pub-cache/hosted/pub.dartlang.org/image_picker-0.8.0+4/ios/Classes/FLT
ImagePickerPlugin.h:5:9: fatal error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
Could not build the application for the simulator. Error launching
application on iPhone 13.
Thanks for your help

Remove ios/Flutter/Flutter.podspec: rm ios/Flutter/Flutter.podspec
Run flutter clean
Run your app again.
If this doesnt solve the issue, try some solutions available here

Related

Error in launching application on phone simulator

I have been having an error with launching my flutter application on my iPhone simulator.
This is what I am getting.
Launching lib/main.dart on iPhone 12 Pro Max in debug mode... Running
Xcode build... Xcode
build done. 37.1s Failed to
build iOS app Error output from Xcode build: ↳
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder,
name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:FFE237E1-BEF3-4A5C-BDC0-8453BFFAC939, OS:15.0, name:iPad (9th generation) }
{ platform:iOS Simulator, id:2D32F1A7-D208-48FD-98C3-F1127400EFDE, OS:15.0, name:iPad Air (4th generation) }
{ platform:iOS Simulator, id:1036C004-B947-4D58-96DE-FA2DD13D1DC8, OS:15.0, name:iPad Pro (9.7-inch) }
{ platform:iOS Simulator, id:A9CD97D7-CB15-4CA1-9039-E61C083E86D3, OS:15.0, name:iPad Pro (11-inch) (3rd generation) }
{ platform:iOS Simulator, id:2E55A7CA-677C-4429-9415-AFCA8AB524AA, OS:15.0, name:iPad Pro (12.9-inch) (5th generation) }
{ platform:iOS Simulator, id:3A3DB989-EF02-45B4-83E1-7097FA10E9D6, OS:15.0, name:iPad mini (6th generation) }
{ platform:iOS Simulator, id:0ADEE93E-6C28-4A92-9F3D-031F5AFD6B48, OS:15.0, name:iPhone 8 }
{ platform:iOS Simulator, id:F4AF895C-BCA2-4EA2-BAFC-3D3E8228539A, OS:15.0, name:iPhone 8 Plus }
{ platform:iOS Simulator, id:A3FE3EFB-8F4C-445D-93C8-6738D5A0DC16, OS:15.0, name:iPhone 11 }
{ platform:iOS Simulator, id:083266D8-8D3F-44E1-8005-EAF72B1DA4B5, OS:15.0, name:iPhone 11 Pro }
{ platform:iOS Simulator, id:8B5025D4-3D5E-42FA-BCB2-1DEE4BEF7AC1, OS:15.0, name:iPhone 11 Pro Max }
{ platform:iOS Simulator, id:56FCECF1-A09A-43B2-9764-75AE78CF9321, OS:15.0, name:iPhone 12 }
{ platform:iOS Simulator, id:62AC8F9B-A87A-4065-AC6C-E8307E1A67A6, OS:15.0, name:iPhone 12 Pro }
{ platform:iOS Simulator, id:C27F8D24-398F-4441-A824-152E08E31D01, OS:15.0, name:iPhone 12 Pro Max }
{ platform:iOS Simulator, id:7D11D52D-77CA-439D-B529-A05A7052BB8D, OS:15.0, name:iPhone 12 mini }
{ platform:iOS Simulator, id:5E1AC482-4D85-46AA-985B-8CAE96CCD8CC, OS:15.0, name:iPhone 13 }
{ platform:iOS Simulator, id:4A2050C1-625D-4490-9251-6F9BB506BF03, OS:15.0, name:iPhone 13 Pro }
{ platform:iOS Simulator, id:32EFD7A1-7FA5-4797-BEC8-1573863BB7AA, OS:15.0, name:iPhone 13 Pro Max }
{ platform:iOS Simulator, id:5711B054-53C3-479F-8974-B3029BFDBFF4, OS:15.0, name:iPhone 13 mini }
{ platform:iOS Simulator, id:916A9E01-E3B5-4403-A071-F10655E391AD, OS:15.0, name:iPhone SE (2nd generation) }
{ platform:iOS Simulator, id:4CC4B513-EEDC-4F19-A8F2-C4B1E08EF841, OS:15.0, name:iPod touch (7th generation) }
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS
Device }
** BUILD FAILED **
Xcode's output:
↳
Error: Cannot run with sound null safety, because the following dependencies
don't support null safety:
- package:font_awesome_flutter
- package:flutter_icons
- package:carousel_slider
For solutions, see https://dart.dev/go/unsound-null-safety
Failed to package /Users/roseanne/test_app.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select
a development team in the Runner editor. (in target 'Runner' from project 'Runner')
Could not build the application for the simulator.
Error launching application on iPhone 12 Pro Max.
It's a error related to the flutter null safety, some of the packages that you imported don't have a null safety compatibility.
If you update (or remove if they don't have a null safe version) the packages listed bellow, it should be working fine.
- package:font_awesome_flutter
- package:flutter_icons
- package:carousel_slider

Codemagic | iOS Build failed

I am trying to build my app with Codemagic, but with no luck.
This is the log. However, i don't understand what should i do in order to fix it. If someone could help me i would appreciate it a lot.
I am currently trying to build it from codemagic because i don't have a mac. If you know another way that could solve the issue, don't hesitate to tell me it.
== Building for iOS ==
> flutter build ios --release --no-codesign
Running "flutter pub get" in clone... 1,235ms
Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
Building com.example.flutterApplication1 for device (ios-release)...
Running pod install... 2,411ms
Running Xcode build...
Xcode build done. 112.8s
Failed to build iOS app
Error output from Xcode build:
↳
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:BDBAD2FC-16AD-45F2-8BA2-1B6A744CAFB6, OS:14.5, name:iPad (8th generation) }
{ platform:iOS Simulator, id:03A783D6-D52A-4FFF-B04F-6A692F09A948, OS:15.0, name:iPad (9th generation) }
{ platform:iOS Simulator, id:AF693EA2-3CEE-406E-9FD3-2AEF7C7AE4E0, OS:14.5, name:iPad Air (4th generation) }
{ platform:iOS Simulator, id:F98892BC-3737-4027-AFD2-BBDF1C17ECBF, OS:15.0, name:iPad Air (4th generation) }
{ platform:iOS Simulator, id:A9EBBABF-6741-4F1E-9139-E5713AF89F7E, OS:14.5, name:iPad Pro (9.7-inch) }
{ platform:iOS Simulator, id:E8CE8886-0B2C-43FF-8EEE-603A8A1685C8, OS:15.0, name:iPad Pro (9.7-inch) }
{ platform:iOS Simulator, id:CE50B412-8301-4439-86D9-218E9B520C64, OS:14.5, name:iPad Pro (11-inch) (2nd generation) }
{ platform:iOS Simulator, id:503ED4B8-9480-401C-99CC-F37B5E9DEDEE, OS:14.5, name:iPad Pro (11-inch) (3rd generation) }
{ platform:iOS Simulator, id:9FD9A6C7-96D1-427D-BBCA-DDE9DFA903BA, OS:15.0, name:iPad Pro (11-inch) (3rd generation) }
{ platform:iOS Simulator, id:560D986F-3412-47DA-B037-69BBD7873E2B, OS:14.5, name:iPad Pro (12.9-inch) (4th generation) }
{ platform:iOS Simulator, id:99B14BF4-7966-4427-ACD1-34BFE4D26A01, OS:14.5, name:iPad Pro (12.9-inch) (5th generation) }
{ platform:iOS Simulator, id:EF9AE2FD-212D-4D6C-AF22-73D7491B8B7F, OS:15.0, name:iPad Pro (12.9-inch) (5th generation) }
{ platform:iOS Simulator, id:9E2823A4-64EA-4D60-A7EF-B401D4EE9D47, OS:15.0, name:iPad mini (6th generation) }
{ platform:iOS Simulator, id:ED635705-38B8-41E4-977A-009F1893C7C8, OS:14.5, name:iPhone 8 }
{ platform:iOS Simulator, id:7C5473C2-9C4E-47E5-8282-442FDF8EB347, OS:15.0, name:iPhone 8 }
{ platform:iOS Simulator, id:6689C1EF-3619-4DE3-AF9F-4A0BAB1FD532, OS:14.5, name:iPhone 8 Plus }
{ platform:iOS Simulator, id:A634BCFD-FC7A-470C-889A-62808EDCE7B5, OS:15.0, name:iPhone 8 Plus }
{ platform:iOS Simulator, id:A8F9CFAD-11FF-46A2-B957-11CB50A189EE, OS:14.5, name:iPhone 11 }
{ platform:iOS Simulator, id:9392FD28-3E15-4CD2-B4D1-BD5B48E6238D, OS:15.0, name:iPhone 11 }
{ platform:iOS Simulator, id:1F17BDC6-F7BA-4D6C-AED3-19992BE39743, OS:14.5, name:iPhone 11 Pro }
{ platform:iOS Simulator, id:1228C53F-AD8F-494F-A7C3-4D53005062DF, OS:15.0, name:iPhone 11 Pro }
{ platform:iOS Simulator, id:86ABCECA-0FF3-4244-925A-CEA93D003D6A, OS:14.5, name:iPhone 11 Pro Max }
{ platform:iOS Simulator, id:C47A5DA4-03E4-415C-9B28-CFE17AD81A4F, OS:15.0, name:iPhone 11 Pro Max }
{ platform:iOS Simulator, id:839F3C4C-B9BC-4F54-BF0F-84CE9BDF79E4, OS:14.5, name:iPhone 12 }
{ platform:iOS Simulator, id:243CD93E-F060-4413-936A-E1C717A78DBE, OS:15.0, name:iPhone 12 }
{ platform:iOS Simulator, id:4E0DDFA4-6C79-4774-9616-20514A2A8714, OS:14.5, name:iPhone 12 Pro }
{ platform:iOS Simulator, id:D6C83C0B-6EF8-4866-B532-F4CF7ED69C50, OS:15.0, name:iPhone 12 Pro }
{ platform:iOS Simulator, id:EE34ECEA-7277-410B-90B2-23DEC7C06077, OS:14.5, name:iPhone 12 Pro Max }
{ platform:iOS Simulator, id:64FC4CC4-95DA-48FE-9980-8AB26CEE9892, OS:15.0, name:iPhone 12 Pro Max }
{ platform:iOS Simulator, id:DEF97C06-7FB2-4895-9B5D-11CA40EB3213, OS:14.5, name:iPhone 12 mini }
{ platform:iOS Simulator, id:E2866178-464C-4D5C-A13D-3597F07DD133, OS:15.0, name:iPhone 12 mini }
{ platform:iOS Simulator, id:EF87D420-E8D1-4B12-B85C-4BBA52FBD220, OS:15.0, name:iPhone 13 }
{ platform:iOS Simulator, id:AC52617F-729B-4308-8CDB-FD850720B274, OS:15.0, name:iPhone 13 Pro }
{ platform:iOS Simulator, id:25315873-BCF7-4159-B6E1-5BD7A2533650, OS:15.0, name:iPhone 13 Pro Max }
{ platform:iOS Simulator, id:2D48F1AA-93AC-48DA-99E7-1B1D44ED5E66, OS:15.0, name:iPhone 13 mini }
{ platform:iOS Simulator, id:EA386A2D-32C2-4593-B2B9-2182F366C195, OS:14.5, name:iPhone SE (2nd generation) }
{ platform:iOS Simulator, id:B47CBB9A-B743-4983-AE42-D576BFB99930, OS:15.0, name:iPhone SE (2nd generation) }
{ platform:iOS Simulator, id:14C619EC-2882-497C-A2A9-6130E2D2BF8C, OS:14.5, name:iPod touch (7th generation) }
{ platform:iOS Simulator, id:4F9DD40E-EB0B-4C05-876A-8E1FFC9BAEF8, OS:15.0, name:iPod touch (7th generation) }
** BUILD FAILED **
Xcode's output:
↳
This application cannot tree shake icons fonts. It has non-constant instances of IconData at the following locations:
- file:///Users/builder/clone/lib/screens/homescreen.dart:158:53
- file:///Users/builder/clone/lib/screens/homescreen.dart:447:22
Failed to package /Users/builder/clone.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
════════════════════════════════════════════════════════════════════════════════
Building a deployable iOS app requires a selected Development Team with a
Provisioning Profile. Please ensure that a Development Team is selected by:
1- Open the Flutter project's Xcode target with
open ios/Runner.xcworkspace
2- Select the 'Runner' project in the navigator then the 'Runner' target
in the project settings
3- Make sure a 'Development Team' is selected under Signing & Capabilities > Team.
You may need to:
- Log in with your Apple ID in Xcode first
- Ensure you have a valid unique Bundle ID
- Register your device with your Apple Developer Account
- Let Xcode automatically provision a profile for your app
4- Build or run your project again
For more information, please visit:
https://flutter.dev/docs/get-started/install/macos#deploy-to-ios-devices
Or run on an iOS simulator without code signing
════════════════════════════════════════════════════════════════════════════════
Encountered error while building for device.
Build failed :|
Failed to build for iOS
you can try the following solutions:
check your Icon implementation how recommended here
try to build with --no-tree-shake-icons option (Settings > Build > Build arguments > iOS)
upgrade Flutter version

Flutter/Flutter.h' file not found when building for ios

i have been having this problem for the last 2 days and tried everything i found online to solve it and so far nothing worked for me, i'm really at a loss here and would appreciate help
error :
Launching lib/main.dart on iPhone 13 in debug mode...
Xcode build done. 12.8s
Failed to build iOS app
Error output from Xcode build:
↳
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }
{ platform:iOS Simulator, id:F9BC5C60-149E-456C-A45D-306B65B6064A, OS:15.0, name:iPhone 8 }
{ platform:iOS Simulator, id:AB2DCA9D-6938-4DEE-8960-84C1DCBB3C0F, OS:15.0, name:iPhone 8 Plus }
{ platform:iOS Simulator, id:C147065E-2EB2-4572-B718-79C7B8DE9BCD, OS:15.0, name:iPhone 11 }
{ platform:iOS Simulator, id:41C362BC-D235-40A3-8779-92646DE5A23E, OS:15.0, name:iPhone 11 Pro }
{ platform:iOS Simulator, id:BDEEE9D0-B104-440F-A10B-B5CD9B70BAA8, OS:15.0, name:iPhone 11 Pro Max }
{ platform:iOS Simulator, id:F5AFAF96-31F7-4BB3-B807-F2EAE7800890, OS:15.0, name:iPhone 12 }
{ platform:iOS Simulator, id:4C577B02-F793-40C8-BDD9-A17BFE12C296, OS:15.0, name:iPhone 12 Pro }
{ platform:iOS Simulator, id:7D5D7CEB-674C-445C-9250-FFA1C2434794, OS:15.0, name:iPhone 12 Pro Max }
{ platform:iOS Simulator, id:EC27FBBF-2C4A-4116-A985-2C66FBADB746, OS:15.0, name:iPhone 12 mini }
{ platform:iOS Simulator, id:4BE16D96-CA6C-444A-B645-F8F07A1D4A4A, OS:15.0, name:iPhone 13 }
{ platform:iOS Simulator, id:48FFF88B-9D55-4CE4-AE15-74AD11DEB824, OS:15.0, name:iPhone 13 Pro }
{ platform:iOS Simulator, id:13233AC1-5CF9-4081-924F-320DD8E04814, OS:15.0, name:iPhone 13 Pro Max }
{ platform:iOS Simulator, id:018E8A53-EDD5-4D8C-B998-91B0E07FA0A6, OS:15.0, name:iPhone 13 mini }
{ platform:iOS Simulator, id:A4D7ADE3-80D8-421E-8FAE-7F91715B06F1, OS:15.0, name:iPhone SE (2nd generation) }
{ platform:iOS Simulator, id:70D65225-ED26-4CCB-B039-CD0A2DEE201F, OS:15.0, name:iPod touch (7th generation) }
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:866DF45E-A9E1-47D5-BC9F-F258E50BCB69, OS:15.0, name:iPad (9th generation) }
{ platform:iOS Simulator, id:48DD8503-D214-4367-9187-4C26DD2EB9A9, OS:15.0, name:iPad Air (4th generation) }
{ platform:iOS Simulator, id:6A5EA463-9F84-4E20-AB88-3AB2500C5011, OS:15.0, name:iPad Pro (9.7-inch) }
{ platform:iOS Simulator, id:52C025F1-9B0D-40DB-97F6-B51978A105BD, OS:15.0, name:iPad Pro (11-inch) (3rd generation) }
{ platform:iOS Simulator, id:0F74B109-6E7F-498E-AA32-E5F9309AB909, OS:15.0, name:iPad Pro (12.9-inch) (5th generation) }
{ platform:iOS Simulator, id:1D1F5B23-7AD5-45BC-907A-9D2C57A0337E, OS:15.0, name:iPad mini (6th generation) }
** BUILD FAILED **
Xcode’s output:
↳
/Users/ahmedaly/Developer/PushApp_Projects/fashion-hero-flutter/ios/Pods/Reachability/Reachability.m:465:63: warning: cast to smaller integer type ‘unsigned int’ from ‘Reachability *’ [-Wpointer-to-int-cast]
NSStringFromClass([self class]), (unsigned int) self, [self currentReachabilityFlags]];
^~~~~~~~~~~~~~~~~~~
1 warning generated.
In file included from /Users/ahmedaly/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.10/ios/Classes/FLTURLLauncherPlugin.m:7:
/Users/ahmedaly/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-6.0.10/ios/Classes/FLTURLLauncherPlugin.h:5:9: fatal error: ‘Flutter/Flutter.h’ file not found
#import <Flutter/Flutter.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
Could not build the application for the simulator.
Error launching application on iPhone 13.
Exited (sigterm)
flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.5.3, on macOS 11.6 20G165 darwin-x64, locale
en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.61.2)
[✓] Connected device (2 available)
• No issues found!
things i've tried:
removing IOS folder inside my project then trying flutter create -flutter clean -pod install flutter run
a lot of different ways people suggested that basically tried reseting and playing around pods

Negate #available in Swift

iOS 13 brings in some handy extensions that I have quite a while now; I'd like to retain my code for iOS 11 and 12 and use built-in for iOS 13:
extension CIImage {
// if iOS 13 not available
open class var black: CIImage { return CIImage(color: .black) }
}

How to detect iOS11 programmatically in Swift?

I saw in the WWDC video that there's some new swift function to detect iOS 11 availability.
How do I detect iOS11 with Swift?
Swift 3:
if #available(iOS 11.0, *) {
// Running iOS 11 OR NEWER
} else {
// Earlier version of iOS
}
More information is available in Declaration Attributes section of Apple's Swift Programming Guide.
Objective C:
if (#available(iOS 11, *)) {
// Running iOS 11 OR NEWER
} else {
// Earlier version of iOS
}