-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
NativeAOT library mode on iOS-like platforms #88737
Comments
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsAs documented in royalapplications/beyondnet#34 (comment) there's a demand to get NativeAOT library mode working on iOS-like platforms. This is specifically for
|
/cc @steveisok |
Tagging subscribers to 'os-ios': @steveisok, @akoeplinger, @kotlarmilos Issue DetailsAs documented in royalapplications/beyondnet#34 (comment) there's a demand to get NativeAOT library mode working on iOS-like platforms. This is specifically for
|
/cc: @curia-damiano you might be interested |
+10 for not having to hardcode the sysroot path to get this to work. Everything else in the build system seems to be working great (as seen in godotengine/godot#82729), this is the only stumbling block that's making it slightly awkward. |
@MichalStrehovsky BTW, looks like the workaround mentioned in #91997 is only for the |
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 Xamarinnet8.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:-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.mobile-librarybuilder-experimental
workload which currently needs to be disabled with_IsAppleMobileLibraryMode=false
. We should disable it automatically for NativeAOT publishing.The text was updated successfully, but these errors were encountered: