-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
[docs] Add building iOS-like native libraries with NativeAOT #43397
base: main
Are you sure you want to change the base?
Conversation
docs/core/deploying/native-aot/libraries/ios-like-native-libraries-with-nativeaot.md
Outdated
Show resolved
Hide resolved
#43399 (comment) applies to this change as well. |
Co-authored-by: Jan Kotas <[email protected]>
docs/core/deploying/native-aot/libraries/ios-like-native-libraries-with-nativeaot.md
Outdated
Show resolved
Hide resolved
docs/core/deploying/native-aot/libraries/ios-like-native-libraries-with-nativeaot.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Michal Strehovský <[email protected]>
docs/core/deploying/native-aot/libraries/ios-like-native-libraries-with-nativeaot.md
Outdated
Show resolved
Hide resolved
Do you have thoughts about moving this doc to where the rest iOS-like specific native AOT docs live? I understand that those are MAUI specific docs. However, a lot of content in there is more generally applicable than MAUI. We seem to be making simplifying assumption that everything mobile specific falls under MAUI. |
I can see advantages and disadvantages with that approach:
|
I would not be optimizing the docs layout around the fact that we do not have support for Objective-C interop in NAOT published libraries. It is not a fundamental limitation, it is just something that we have not found time for.
Right, and this doc problem exists for Mono too. We do not seem to mention existence of the tvos workload anywhere in the docs.
Right, and it is also applicable to building raw iOS apps without mobile SDK. It is not specific to building libraries without mobile SDK. After thinking about this some more, I would like to avoid the mainline docs to be cluttered with platform or app-model specific content. It makes them look complicated. At the same time, we should make the platform specific content more discoverable. For example, https://review.learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/?branch=pr-en-us-43397&tabs=windows%2Cnet9plus mentions iOS as supported, but it does not point you to a place where you can find anything more about it. How about we move the platform-specific to its own hives at the end, like:
|
Thats sounds like a good idea, I will look into it. |
I do not think we have placeholder pages like that anywhere in the official docs. |
docs/core/deploying/native-aot/libraries/ios-like-native-libraries-with-nativeaot.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this great article @ivanpovazan. I left some grammatical suggestions.
docs/core/deploying/native-aot/libraries/xcode-add-framework-reference.png
Outdated
Show resolved
Hide resolved
docs/core/deploying/native-aot/libraries/ios-like-native-libraries-with-nativeaot.md
Outdated
Show resolved
Hide resolved
docs/core/deploying/native-aot/libraries/ios-like-native-libraries-with-nativeaot.md
Outdated
Show resolved
Hide resolved
docs/core/deploying/native-aot/libraries/ios-like-native-libraries-with-nativeaot.md
Outdated
Show resolved
Hide resolved
docs/core/deploying/native-aot/libraries/ios-like-native-libraries-with-nativeaot.md
Outdated
Show resolved
Hide resolved
docs/core/deploying/native-aot/libraries/ios-like-native-libraries-with-nativeaot.md
Outdated
Show resolved
Hide resolved
docs/core/deploying/native-aot/libraries/ios-like-native-libraries-with-nativeaot.md
Outdated
Show resolved
Hide resolved
docs/core/deploying/native-aot/libraries/ios-like-native-libraries-with-nativeaot.md
Outdated
Show resolved
Hide resolved
docs/core/deploying/native-aot/libraries/ios-like-native-libraries-with-nativeaot.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Genevieve Warren <[email protected]>
@jkotas I restructured the doc as suggested, could you please give it another look? |
Please squash and merge when you're ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
Summary
This PR adds documentation describing how to build and consume native libraries with NativeAOT targeting iOS-like platforms.
Fixes dotnet/runtime#96742
Contributes to: dotnet/runtime#96664
Internal previews