-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Enable AppleAppBuilder to bundle iOS applications built for NativeAOT runtime #81711
Conversation
Tagging subscribers to this area: @directhex Issue DetailsThis PR adds support for bundling iOS applications built for NativeAOT runtime with AppleAppBuilder. An example of invoking the task would be as follows: <AppleAppBuilderTask
UseNativeAOTRuntime="True"
TargetOS="$(TargetOS)"
Arch="$(TargetArchitecture)"
ProjectName="$(AppName)"
Assemblies="@(BundleAssemblies)"
GenerateXcodeProject="True"
BuildAppBundle="True"
DevTeamProvisioning="$(DevTeamProvisioning)"
OutputDirectory="$(AppDir)"
Optimized="$(Optimized)"
AppDir="$(MSBuildThisFileDirectory)$(PublishDir)">
<Output TaskParameter="AppBundlePath" PropertyName="AppBundlePath" />
<Output TaskParameter="XcodeProjectPath" PropertyName="XcodeProjectPath" />
</AppleAppBuilderTask> Assumptions:
Fixes: #80910 PS The purpose of adapting AppleAppBuilder is to enable building sample applications which would serve as PoC and initial steps to enable testing and validation of NativeAOT on iOS support. The full SDK integration (via Xamarin build tasks) will become available as a follow-up work.
|
2ea9a6f
to
e5dee96
Compare
This PR adds support for bundling iOS applications built for NativeAOT runtime with AppleAppBuilder.
An example of invoking the task would be as follows:
Assumptions:
$(PublishDir)
should include all the*.o
,*.dat
,*.a
required for linking the AOT compiled managed executable with the native host application (from template: https://github.com/dotnet/runtime/blob/main/src/tasks/AppleAppBuilder/Templates/main-simple.m)Fixes: #80910
PS The purpose of adapting AppleAppBuilder is to enable building sample applications which would serve as PoC and initial steps to enable testing and validation of NativeAOT on iOS support. The full SDK integration (via Xamarin build tasks) will become available as a follow-up work.