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.
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.
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.
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.
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.
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
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
This is what I did:
flutter clean
on the terminal.flutter upgrade
on the terminal.flutter clean
again.flutter run
.It should work now.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With