Closed
Description
As documented in royalapplications/beyondnet#34 (comment) there's a demand to get NativeAOT library mode working on iOS-like platforms. This is specifically for net8.0
TFM and NOT the Xamarin net8.0-ios
TFM which may run into similar issues but requires fixes in the Xamarin SDK. It currently requires a couple of workaround and we should look into fixing the underlying issues:
- Linking step doesn't use correct
-sysroot
/-target
. We currently bundle the apps through AppleAppBuilder in dotnet/runtime, and a custom bundler in Xamarin. However, for dylib builds the NativeAOT linker step on its own is mostly sufficient. We just need to specify proper-target
(eg.apple-arm64-ios11.0
or similar) and sysroot. The sysroot can be obtained throughxcrun
, or we can simply execute the whole linker usingxcrun -sdk iphoneos clang <options>
command to achieve the same result. - There's a conflict with the new
mobile-librarybuilder-experimental
workload which currently needs to be disabled with_IsAppleMobileLibraryMode=false
. We should disable it automatically for NativeAOT publishing.
Metadata
Metadata
Assignees
Type
Projects
Status
No status