Closed usertoroot closed 4 months ago
StaticICULinking
has no effect on iOS. You would either need to initialize the ICU manually, like the Xamarin workload does, or use the InvariantGlobalization
mode.
The static library support in NativeAOT on iOS is going to be officially supported only in .NET 9, even if it works to some extent on .NET 8. There will also be the hybrid globalization mode that relies on system APIs instead of ICU.
Tagging subscribers to 'os-ios': @steveisok, @akoeplinger, @kotlarmilos See info in area-owners.md if you want to be subscribed.
Author: | usertoroot |
---|---|
Assignees: | - |
Labels: | `untriaged`, `os-ios`, `needs-area-label` |
Milestone: | - |
I suspect you're hitting https://github.com/dotnet/runtime/issues/95124
To avoid confusion regarding the reported issue - The reported sample uses MonoAOT
library mode for iOS platforms.
I suspect you're hitting https://github.com/dotnet/runtime/issues/95124
I tried manually including icudt.dat
files in the app bundle and that resolved the issue, making this a duplicate of https://github.com/dotnet/runtime/issues/95124
As previously said, the iOS library support is experimental in .NET8 and the plan is to officially support it in .NET9, for both MonoAOT and NativeAOT.
Closing as duplicate of #95124
Description
I am not sure if it should be here or on the MAUI so this is posted on both (see https://github.com/dotnet/maui/issues/20197).
iOS app crashes instantly when
SayHello
is called. I have isolated it to the.ToString()
call on the double object.Here is the stack trace.
Reproduction Steps
On the C# side
Program.cs
ManagedProject.csproj
ILLink.Descriptor.xml
On the Swift side just a empty SwiftUI project with the following ContentView
And bridging header
Cs-Bridging-Header.h
Expected behavior
Actual behavior
Regression?
No response
Known Workarounds
No response
Configuration
MacOS: Sonoma 14.2.1 iOS Swift Deployment Target: 15.2 Xcode: 15.2 Dotnet 8.0.101 o maui-ios 8.0.3/8.0.100 o maui 8.0.3/8.0.100 o mobile-librarybuilder 8.0.1/8.0.100
Other information
No response