Your Xcode version may be too old for your iOS version

前端 未结 5 1281
-上瘾入骨i
-上瘾入骨i 2021-02-19 23:50

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 Stu

相关标签:
5条回答
  • 2021-02-20 00:29

    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

    0 讨论(0)
  • 2021-02-20 00:29

    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

    0 讨论(0)
  • 2021-02-20 00:33

    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/

    1. ReOpen Xcode.
    0 讨论(0)
  • 2021-02-20 00:44

    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.

    0 讨论(0)
  • 2021-02-20 00:47

    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.

    0 讨论(0)
提交回复
热议问题