13

I have updated my phone's OS version to iOS 14 and spent today updating Xcode to version 12, yet when I try to build my Flutter app on my iPhone 11 - iOS 14 through Android Studio, it gives me this error:

Your Xcode version may be too old for your iOS version.
═══════════════════════════════════════════════════════════════════════════════════
2020-09-18 19:14:26.576 ios-deploy[30916:201883] [ !! ] Error 0xe8000022: The service is invalid. AMDeviceSecureStartService(device, CFSTR("com.apple.debugserver"), NULL, &con)
Could not run build/ios/iphoneos/Runner.app on 00008030-00012C200C45802E.
Try launching Xcode and selecting "Product > Run" to fix the problem:
  open ios/Runner.xcworkspace

Error launching application on Azheen’s.
Sludge
  • 6,072
  • 5
  • 31
  • 43
azheen
  • 897
  • 4
  • 15
  • 30

5 Answers5

6

This problem is somewhat confusing, I got the same error with Xcode 12.0.1 and iOS 14.2 beta. This solved for me

Download Device support files of iOS 14.0 from this link.

for iOS 14.2 beta there is a pull request that is not yet merged

  1. Unzip and Paste it in this location. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

hierarchy

  1. ReOpen Xcode.
EdHuamani
  • 1,857
  • 13
  • 17
  • Unable to locate DeviceSupport directory with suffix 'Symbols'. This probably means you don't have Xcode installed, you will need to launch the app manually and logging output will not be shown! – Midhilaj Nov 11 '20 at 12:09
5

This is what I did:

  1. Updated Xcode
  2. flutter clean on the terminal.
  3. flutter upgrade on the terminal.
  4. Open Xcode and run the application once.
  5. flutter clean again.
  6. flutter run.

It should work now.

Abid Abdul Gafoor
  • 462
  • 1
  • 6
  • 18
4

This issued was raised a while back in August in the flutter repo. Currently, the issue has been fixed by the recent flutter update.

Run flutter upgrade to v1.20.4 to get the fix

ByteMe
  • 1,575
  • 1
  • 12
  • 23
1

I ran into this problem recently, most likely it can be caused due to the reason, that your iOS Device is running a higher version than you xcode can support.

Example:

Apple release new iOS for iPhone i.e. 14.2 and you upgrade your device right away, than you ran into this issue, because the xcode may not have the latest version of your device support files, meaning xcode can only suuport iOS 14.1 or lower. Apple sometimes release newer iOS without providing update of xcode device support files.

There is 4 solutions for this:

  1. Keep your iOS Device on the current stable version of xcode
  2. Downgrade your current iOS device
  3. Install device support files manually
  4. Install xcode beta from Apple Developer https://developer.apple.com/download/

It is an annoying issue, Apple should not release any iOS without having the supporting tools released at the same time, or they should run a warning.

Cyber
  • 2,194
  • 4
  • 22
  • 41
  • Thanks for your and @EdHuamani. Downloading the support files listed in EdHuamani comment and placing them on the respective directory solved it for me. I really started getting annoyed with the whole flutter thing. I am spending most of my time fixing these issues rather than developing something useful. – M. A. Nov 10 '20 at 21:57
  • Unable to locate DeviceSupport directory with suffix 'Symbols'. This probably means you don't have Xcode installed, you will need to launch the app manually and logging output will not be shown! – Midhilaj Nov 11 '20 at 12:21
0

Ran into this issue today on Visual Studio. It appeared that my Dart SDK version was too out of date and upgrading it appeared to fix the problem.

I did upgrade my Flutter version first, and then ran into a problem with the vsync property of AnimationController not being recognized, which was solved by upgrading the Dart SDK, so I'm not sure who the real culprit was (or if it was a combination of both).

Instructions on upgrading your Dart SDK: https://dart.dev/get-dart

Sludge
  • 6,072
  • 5
  • 31
  • 43