Support for new Beta versions of iOS. iOS17 beta for example #15540
-
We have noticed that Apple have opened Beta versions for much more users. |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 15 replies
-
i need a solution to run MAui on ios 17... Apple is failing app validation because the app does not open on ios17 |
Beta Was this translation helpful? Give feedback.
-
@JawadJaber, any update? |
Beta Was this translation helpful? Give feedback.
-
Is there any solution for Xamarin or Maui on iOS 17 ? |
Beta Was this translation helpful? Give feedback.
-
Given the timing of this thread the crash appeared with the "1st developer beta" (early June) and we can confirm still seeing it with the "3rd developer beta update" a month later (late July). See also #16316 |
Beta Was this translation helpful? Give feedback.
-
Why this happensIn Xcode 15.x and iOS 17, Apple has removed the NewsstandKit framework from the SDK entirely. When building MAUI or .NET apps with Xcode 14.x support, your app may be linking in this framework, especially in Debug mode, but possibly in Release mode too. If it does so, and you try to run the app on iOS17, it will crash with the error articulated in this discussion. WorkaroundTo work around this issue for now, you can set the following project properties in your iOS / MacCatalyst .NET/MAUI app project:
This should cause the NewsstandKit framework (if you are not actually using it in your app) to be linked out / removed so that the app can continue to run on iOS 17.
|
Beta Was this translation helpful? Give feedback.
-
For us the above workaround isn't working. Is there anything special beside the MAUI project setting? We added this one but the App ist still closing on startup with iOS 17 but working on iOS 16. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
PSA - Update from JIRA land - a fix made 2 or 3 weeks ago will be available in an update after the recently released .NET 7.0.307. |
Beta Was this translation helpful? Give feedback.
-
The workaround mention by @Redth is not working for me. I've added the following and it is still crashing on the physical device:
|
Beta Was this translation helpful? Give feedback.
-
The work around fixes the issue, but I also have to disable XAML Hot Reload otherwise the app crashed when launching the debugger:
2023-09-27 12:23:48.703 XtremeBarBingo[672:24023] warning: Could not load signature of Xamarin.HotReload.AgentTelemetryService:Post due to: Could not resolve type with token 01000049 from typeref (expected class 'System.ValueTuple Thread started: #3 2023-09-27 12:23:48.960 XtremeBarBingo[672:24023] warning: Can't find custom attr constructor image: data-0x10b038000 mtoken: 0x0a000005 due to: Could not load file or assembly 'Xamarin.HotReload.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. 2023-09-27 12:23:48.960 XtremeBarBingo[672:24023] warning: Can't find custom attr constructor image: data-0x10b09c000 mtoken: 0x0a00000d due to: Could not resolve type with token 0100000e from typeref (expected class 'System.Resources.UltimateResourceFallbackLocation' in assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51') assembly:netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 type:System.Resources.UltimateResourceFallbackLocation member:(null) Thread started: #4 2023-09-27 12:23:49.751 XtremeBarBingo[672:24023] warning: Can't find custom attr constructor image: data-0x10b038000 mtoken: 0x0a000005 due to: Could not load file or assembly 'Xamarin.HotReload.Contracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. |
Beta Was this translation helpful? Give feedback.
Why this happens
In Xcode 15.x and iOS 17, Apple has removed the NewsstandKit framework from the SDK entirely. When building MAUI or .NET apps with Xcode 14.x support, your app may be linking in this framework, especially in Debug mode, but possibly in Release mode too. If it does so, and you try to run the app on iOS17, it will crash with the error articulated in this discussion.
Workaround
To work around this issue for now, you can set the following project properties in your iOS / MacCatalyst .NET/MAUI app project:
This should cause …