Reputation: 67
When im trying to run flutter project from vsCode onto my iPhone, suddenly this error started appearing :
Could not run build/ios/iphoneos/Runner.app on 00001910-00081XXXX19A201E. Try launching Xcode and selecting "Product > Run" to fix the problem: open ios/Runner.xcworkspace
Error launching application on iPhone.
NOTE: this started after i updated to iOS 17 and XCODE 15.
Also, im able to run the app from XCODE and its working fine, only from VsCode & Android Studio its throwing this error
**Already tried the following: **
Upvotes: 3
Views: 6034
Reputation: 523
In my case device had no free memory
left on device to install new build.
I could run the build unless uninstalling previous app.
Even running the build from XCode did not show this as error reson.
Upvotes: 0
Reputation: 11
This issue has been resolved by updating the flutter version, like the image
Upvotes: 0
Reputation: 51
I fixed the problem by update the flutter version to the latest Flutter SDK 3.13.9 Dart SDK 3.1.5 then flutter clean & pub get then pod install and pod update then You may be prompted to give access to control Xcode. Flutter uses Xcode to run your app. If access is not allowed, you can change this through your Settings > Privacy & Security > Automation from your mac device
Note: the first run will run the Xcode only maybe Just go to the last step and disallow and allow it again from Settings > Privacy & Security > Automation from your mac device
if you try this solution it will work definitely.
Upvotes: 2
Reputation: 1772
Solution 1:
Open Settings > Developer
Click on Clear trusted computer
Then click on trust this computer
Run flutter clean
flutter pub get
Solution 2:
1- Force close your Xcode
2- Run your app again
Upvotes: 0