-
Notifications
You must be signed in to change notification settings - Fork 7
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
Try to compile for other platforms (tvOS, watchOS, visionOS, Android) #34
Comments
Check again in .NET 8 Preview 6 |
As expected, this is a supported scenario in Preview 6: https://devblogs.microsoft.com/dotnet/announcing-dotnet-8-preview-6/ |
Unfortunately it looks like NativeAOT support for iOS in .NET 8 Preview 6 is currently limited to app projects and classlibs are not supported. @filipnavara is that correct? The current state of the iOS experiments is here. |
Building for ios-arm64 works now with some workarounds in the csproj:
<ItemGroup>
<LinkerArg Include="-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk" />
<LinkerArg Include="-mios-version-min=16.0" />
</ItemGroup> A "dummy" (unused) Many thx for your support @filipnavara! |
Btw, for the Android part, that should also work if you use the Bionic RID. This issue has the latest details: dotnet/runtime#87340. The official doc is not written up yet. |
@MichalStrehovsky Many thx for the info! I'll get to Android part once I'm happy with the way things work for Apple targets. |
dotnet/runtime#93658 will add proper iOS library support to .NET. Once that lands, we should remove the various workarounds that are in place today. |
There's hope for visionOS support: dotnet/runtime#87929 |
Outdated Info (both iOS and Android are supported now):
As of May 2023, NativeAOT is only (officially) supported on desktop platforms.
Regarding iOS:
dotnet/runtime#80905
Regarding Android:
dotnet/runtime#76983
The text was updated successfully, but these errors were encountered: