[Workaround] Targeting lower iOS versions with Xcode 15 can cause crash

743 views
Skip to first unread message

Leigha Jarett

unread,
Dec 29, 2023, 10:12:12 AM12/29/23
to Flutter Public Announcements (flutter-announce)

Hi Flutter developers, 


We’ve recently learned of an issue where Flutter apps targeting a lower iOS version built with Xcode 15 (released in 2023) can crash at runtime when certain (non-deprecated) networking APIs are called. This crash happens on even the newest version of iOS.  Increasing the app target deployment version to match Xcode’s support range avoids the crash.


If you are using Xcode 15, you can increase the app target deployment version to match Xcode’s support range by following the steps below.


  1. Open the default Xcode workspace in your project by running open ios/Runner.xcworkspace in a terminal window from your Flutter project directory.

  2. Select the Runner target in the Xcode navigator.

  3. Select the General tab and update the minimum iOS deployment version to 12.0



Versions lower than iOS 12 will become unsupported in a future version of Flutter. 


In general, Flutter’s supported iOS and macOS deployment versions do not match Xcode’s deployment range.  There is a proposal to update Flutter’s supported deployment platform versions when Xcode is released annually to match its deployment versions.  If you have any concerns, please add a comment to the document.


Best,
Leigha
Reply all
Reply to author
Forward
0 new messages