Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to run flutter app on iOS Simulator

I am not able to run my flutter app on iOS Simulator. It is giving me this error :

Launching lib/main.dart on iPhone XR in debug mode... Starting Xcode build... Xcode build done. 7.9s Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED **

Xcode's output: ↳ === BUILD TARGET url_launcher OF PROJECT Pods WITH CONFIGURATION Debug === /Users/snehal/.pub-cache/hosted/pub.dartlang.org/simple_permissions-0.1.9/ios/Classes/SwiftSimplePermissionsPlugin.swift:51:38: error: 'UIApplicationOpenSettingsURLString' has been renamed to 'UIApplication.openSettingsURLString' if let url = URL(string: UIApplicationOpenSettingsURLString) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ UIApplication.openSettingsURLString UIKit.UIApplicationOpenSettingsURLString:3:12: note: 'UIApplicationOpenSettingsURLString' was obsoleted in Swift 4.2 public let UIApplicationOpenSettingsURLString: String ^

Could not build the application for the simulator. Error launching application on iPhone XR.

Please Help. Thanks in advance :)

I want to run my app on iOS Simulator.

like image 318
Snehal Lokhande Avatar asked Mar 04 '23 19:03

Snehal Lokhande


1 Answers

if you have no luck then try to open with Xcode (Build and Run Enjoy):

enter image description here

like image 88
Nazmul Hasan Avatar answered Mar 16 '23 12:03

Nazmul Hasan