recently I updated my iPhone version to IOS 14, but after updating to a newer software version my flutter app not save in debug mode.
(As a simple word, I am run my flutter application on my ios device with a USB cable,
but after removing the USB cable, my application automatically closes and not open again without connection in debug mode.
this issue only arises in IOS 14.
It works fine only if the connection is established in the device with Xcode.)
this issue not arise in other IOS versions like IOS 13.
This GitHub issue suggests upgrading flutter (use flutter upgrade) or using flutter run --release.
It is a new limitation in iOS 14.
"due to changes in debugger mechanisms, once a Flutter debug application is installed on the device (either by using flutter run a Flutter-enabled IDE, or from Xcode), the application can no longer be re-launched by tapping the application’s icon in the home screen in iOS 14 on physical devices."
https://flutter.dev/docs/development/ios-14
If you want to see more details about the issue: https://github.com/flutter/flutter/issues/60657
Related
I've been developing a news app with Flutter and when I build and run it through Android Studio it launches fine, but when I try to launch the app by clicking on it on the home screen, it says "in iOS 14+, debug mode flutter apps can only be launched from Flutter tooling,IDEs ....."(Screenshot attatched). Can someone tell me as to how to get around this?
Apparently, this is a known issue of Flutter on iOS 14 for apps in debug mode, see this article on the Flutter website, and this GitHub issue. So for the time being, I believe your main workarounds are the following:
Always run the app from the host PC (using flutter run, IDE debug, etc.)
Build a release version of your app (instead of debug) and use that on your device, e.g. use flutter run --release
Use a device with iOS 13 or older
Use a simulator
If you want to use the app without being connected via usb
Open the ios folder on Xcode
Make sure your device is connected
Select Product from the menu bar -> Scheme -> Edit Scheme
Or simply use the shortcut: command + >
Step 3
Change the build configure to Release
Run the app from Xcode
Disconnect your device and you're good to go!
I wrote application in flutter in android studio. I tried to build it on ios. On emulators it worked ( i tested it on all avaible version of iphone and ipad), but when i tried do the same with real device (iphone 6) all i got was
flutter run
No devices connected
Flutter doctor said only
Connected Device
! No devices connected
Which is strange, because my mac see this device and xcode see it too. I tried to build it in console. What can i do to make this app run on real device?
If you still having trouble connecting physical iOS devices, try to follow these steps here.
Also make sure that you are running the updated Xcode for a specific iOS version, as there are some cases that these was caused by compatibility issues as mentioned here.
Known Issues
Xcode 11.4 doesn’t work with devices running iOS 13.4 beta 1 and beta 2. (60055806)
I took over a mobile app project using Cordova, Ionic and AngularJS.
When sending code to emulator by i.e. running grunt run:ios --target="iPhone-5", I see the latest iOS version (9.2) popping up.
Where in the XCode simulator I can change my target device and the iOS version? I know where to change the device, but not the iOS version...
My application works fine in the iOS simulator (running iOS 8.1).
The build target of the app is for iOS version 7.0.
When I try to run my app on my real iPhone (running iOS 7.0), the build fails- the reason being, route.h file is missing.
How can I extract this file from the iOS simulator SDK present in my mac, and add it to my project?
Basically, I'm trying to run my app on my phone, without updating the phone to version 8.1.
As I'm new to iOS development, I have no idea where the SDK is even stored on the drive, or how to access it.
(I'm using Xcode 6.)
I've just updated my iPhone to iOS 7.1.2, and I can no longer run my apps through xcode 5.1.1. And I can't install apps with this iOS version too.
To solve this issue do the following:
Connect the device to your computer and open iTunes.
It will prompt you to allow the computer to access the device.
If you accept, the device should be properly recognized by Xcode too and selectable to run your app.
Still no clue why this happened in first place, after updating to iOS 7.1.2.