Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Your Xcode version may be too old for your iOS version

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.
like image 637
azheen Avatar asked Sep 18 '20 16:09

azheen


People also ask

How do I update Xcode to iOS 13?

Downloading and updating XcodeThe current release of Xcode is available as a free download from the Mac App Store. The Mac App Store will notify you when an update is available or you can have macOS update automatically as it becomes available.

What version of Xcode is needed for iOS 14?

The "iOS x SDK" means that you need to build your apps using the version of Xcode that includes support for iOS version x. (Apple releases versions of the iOS SDK as part of the Xcode IDE.) If Xcode 12 is the first version of Xcode that supports iOS 14, you need to build with Xcode 12.

How do I install iOS 14.5 on Xcode?

Copy and paste the 14.5 directory into /Applications/Xcode. app/Contents/Developer/Platforms/iPhoneOS. platform/DeviceSupport . Make a duplicate of 14.5 directory by copy and pasting it into the same directory (into DeviceSupport ) then rename the directory to 14.6, 14.7, etc.

Which iOS version does Xcode 12.4 support?

Xcode 12.4 includes SDKs for iOS 14.4, iPadOS 14.4, tvOS 14.3, watchOS 7.2, and macOS Big Sur 11.1. The Xcode 12.4 release supports on-device debugging for iOS 9 and later, tvOS 9 and later, and watchOS 2 and later. Xcode 12.4 requires a Mac running macOS 10.15. 4 or later.


3 Answers

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.
like image 85
EdHuamani Avatar answered Oct 23 '22 14:10

EdHuamani


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.

like image 44
Abid Abdul Gafoor Avatar answered Oct 23 '22 15:10

Abid Abdul Gafoor


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

like image 27
ByteMe Avatar answered Oct 23 '22 13:10

ByteMe