Skip to content

Commit b7df7aa

Browse files
committed
wip: clean up
1 parent ec65ba0 commit b7df7aa

File tree

2 files changed

+23
-16
lines changed

2 files changed

+23
-16
lines changed

docs/core/deploying/native-aot/ios-like-platforms/creating-and-consuming-custom-frameworks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: ivanpovazan
66
ms.date: 11/21/2024
77
---
88

9-
# Build native libraries for iOS-like platforms
9+
# Create and consume custom frameworks for iOS-like platforms
1010

1111
Starting from .NET 9, Native AOT supports publishing .NET class libraries that don't depend on iOS workloads for iOS-like platforms.
1212
This support enables you to create self-contained native libraries that can be consumed from iOS, Mac Catalyst, and tvOS applications.

docs/core/deploying/native-aot/ios-like-platforms/index.md

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,20 @@ ms.date: 11/21/2024
88

99
# Native AOT support for iOS-like platforms
1010

11-
Starting from .NET 8, Native AOT supports targeting iOS-like platforms. The term **iOS-like platforms** refers to Apple platforms that use similar APIs such as: iOS, MacCatalyst and tvOS.
11+
Starting from .NET 8, Native AOT supports targeting iOS-like platforms. The term *iOS-like platforms* refers to Apple platforms that use similar APIs such as: iOS, MacCatalyst and tvOS.
1212

1313
In the first release, the support was experimental, while in .NET 9 these platforms received full support with Native AOT.
1414

1515
Based on the use case, the support can be divided into:
1616

17-
- support for assemblies referencing OS-specific APIs through .NET mobile workloads (like: .NET MAUI apps)
18-
- support for assemblies without OS-specific API dependencies
17+
- support for applications and libraries without OS-specific API dependencies
18+
- support for applications and libraries referencing OS-specific APIs
1919

20-
The former is a more common scenario and is described in detail in [How MAUI supports Native AOT](/dotnet/maui/deployment/nativeaot).
21-
For the latter use case Native AOT deployment can be achieved by:
20+
## Support for applications and libraries without OS-specific API dependencies
2221

23-
1. Enable Native AOT deployment by including the following properties in the project file:
22+
This refers to .NET projects targeting the general or non-OS-specific target framework (like: `net9.0`), for which Native AOT can be enabled in the following way:
23+
24+
1. Include the following properties in your project file:
2425

2526
```xml
2627
<PublishAot>true</PublishAot>
@@ -29,16 +30,22 @@ For the latter use case Native AOT deployment can be achieved by:
2930

3031
2. Publish the project for the desired iOS-like target platform by specifying adequate runtime identifier (later referred to as `<rid>`):
3132

32-
- `ios-arm64`, for iOS physical devices
33-
- `iossimulator-arm64` or `iossimulator-x64`, for iOS simulators
34-
- `maccatalyst-arm64` or `maccatalyst-x64`, for Mac Catalyst
35-
- `tvos-arm64`, for tvOS physical devices
36-
- `tvossimulator-arm64` or `tvossimulator-x64`, for tvOS simulators
33+
- `ios-arm64`, for iOS physical devices
34+
- `iossimulator-arm64` or `iossimulator-x64`, for iOS simulators
35+
- `maccatalyst-arm64` or `maccatalyst-x64`, for Mac Catalyst
36+
- `tvos-arm64`, for tvOS physical devices
37+
- `tvossimulator-arm64` or `tvossimulator-x64`, for tvOS simulators
3738

38-
and execute the following command:
39+
and execute the following command:
3940

40-
```
41-
dotnet publish -r <rid>
42-
```
41+
```
42+
dotnet publish -r <rid>
43+
```
4344

4445
For specifics of building and consuming native libraries on iOS-like platforms, see [How to create and consume custom frameworks with Native AOT for iOS-like platforms](./creating-and-consuming-custom-frameworks.md).
46+
47+
## Support for applications and libraries referencing OS-specific APIs
48+
49+
This refers to .NET MAUI projects targeting OS-specific target frameworks (like: `net9.0-ios`).
50+
51+
How Native AOT can be enabled for .NET MAUI apps, see [Native AOT deployment on iOS and Mac Catalyst](/dotnet/maui/deployment/nativeaot).

0 commit comments

Comments
 (0)