Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET Maui 7 app crashes on iOS 17 #16316

Closed
JRosanowski opened this issue Jul 24, 2023 · 7 comments · Fixed by dotnet/macios#18621
Closed

.NET Maui 7 app crashes on iOS 17 #16316

JRosanowski opened this issue Jul 24, 2023 · 7 comments · Fixed by dotnet/macios#18621
Labels
platform/iOS 🍎 t/bug Something isn't working

Comments

@JRosanowski
Copy link

Description

Link to discussion.
#15540

.Net Maui apps crash on the iOS 17 beta. iOS 17 is being released in September but some people are installing the beta now. Can we have some indication of when this will be fixed? Will there be a .NET Maui 7 release to address it or will it only be addressed in November with the .NET Maui 8 release?
I assume there's also a dependency on XCode 15?

Steps to Reproduce

Run a .NET Maui 7 app on iOS 17 beta

Link to public reproduction project repository

/~https://github.com/dotnet/maui-samples

Version with bug

7.0.49

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 17 Beta

Did you find any workaround?

No

Relevant log output

No response

@JRosanowski JRosanowski added the t/bug Something isn't working label Jul 24, 2023
@jsuarezruiz
Copy link
Contributor

@rolfbjarne Thoughts?

@JRosanowski
Copy link
Author

There's a workaround mentioned in the Discussion
#15540

@rolfbjarne
Copy link
Member

We'll fix this in dotnet/macios#18621, and backport the fix to .NET 7 so that the next service release will contain it.

rolfbjarne added a commit to dotnet/macios that referenced this issue Aug 3, 2023
It seems that Apple will completely remove the NewsstandKit framework from iOS 17.

This poses a problem for existing apps that link with NewsstandKit: they will
crash at launch.

Solve this by always linking weakly with the NewsstandKit framework; this way
any apps that link with it will keep working if the framework ends up being
removed by Apple.

Fixes #18606.
Fixes dotnet/maui#16316.
rolfbjarne pushed a commit to dotnet/macios that referenced this issue Aug 4, 2023
…18606. (#18624)

It seems that Apple will completely remove the NewsstandKit framework from iOS 17.

This poses a problem for existing apps that link with NewsstandKit: they will
crash at launch.

Solve this by always linking weakly with the NewsstandKit framework; this way
any apps that link with it will keep working if the framework ends up being
removed by Apple.

Fixes #18606.
Fixes dotnet/maui#16316.

Backport of #18621
rolfbjarne pushed a commit to dotnet/macios that referenced this issue Aug 7, 2023
… (#18625)

It seems that Apple will completely remove the NewsstandKit framework from iOS 17.

This poses a problem for existing apps that link with NewsstandKit: they will
crash at launch.

Solve this by always linking weakly with the NewsstandKit framework; this way
any apps that link with it will keep working if the framework ends up being
removed by Apple.

Fixes #18606.
Fixes dotnet/maui#16316.

Backport of #18621
@varyamereon
Copy link

varyamereon commented Aug 9, 2023

We'll fix this in xamarin/xamarin-macios#18621, and backport the fix to .NET 7 so that the next service release will contain it.

@rolfbjarne I guess this didn't make it into 7.0.307? Have just updated and rebuilt my project but it is still crashing at launch on iOS 17.

@rolfbjarne
Copy link
Member

We'll fix this in xamarin/xamarin-macios#18621, and backport the fix to .NET 7 so that the next service release will contain it.

@rolfbjarne I guess this didn't make it into 7.0.307? Have just updated and rebuilt my project but it is still crashing at launch on iOS 17.

Correct, it was fixed too late for this week's release, it'll be in the next release.

@Hooterr
Copy link

Hooterr commented Aug 23, 2023

@rolfbjarne Any word on when that'll be?
iOS 17 release is scheduled between September 13, and September 21, 2023. We can't have our apps just stop working out of the blue.

Is there a way to somehow fix this without having to wait for the official release?

@rolfbjarne
Copy link
Member

@rolfbjarne Any word on when that'll be? iOS 17 release is scheduled between September 13, and September 21, 2023. We can't have our apps just stop working out of the blue.

If all goes well in the next service release.

Is there a way to somehow fix this without having to wait for the official release?

Yes. The solution in this discussion explains it: #15540 (comment)

@ghost ghost locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform/iOS 🍎 t/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants