From e730af3d35963b7f087d1af42221bc0b05c4ecfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20L=C3=B8bger?= Date: Fri, 9 Jan 2026 11:49:55 +0100 Subject: [PATCH 1/2] Add support for net10 --- .../MAUI.Native.Embedded.Sample.csproj | 2 +- MAUI.Native.Embedded.Sample/Platforms/iOS/Program.cs | 3 +-- MAUI.Native.Embedded.nuget/MAUI.Native.Embedded.nuget.csproj | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/MAUI.Native.Embedded.Sample/MAUI.Native.Embedded.Sample.csproj b/MAUI.Native.Embedded.Sample/MAUI.Native.Embedded.Sample.csproj index fb9f134..f5a3fef 100644 --- a/MAUI.Native.Embedded.Sample/MAUI.Native.Embedded.Sample.csproj +++ b/MAUI.Native.Embedded.Sample/MAUI.Native.Embedded.Sample.csproj @@ -1,7 +1,7 @@  - net9.0-android;net9.0-ios + net10.0-android;net10.0-ios Exe MAUI.Native.Embedded.Sample diff --git a/MAUI.Native.Embedded.Sample/Platforms/iOS/Program.cs b/MAUI.Native.Embedded.Sample/Platforms/iOS/Program.cs index c751d6c..5bb6330 100644 --- a/MAUI.Native.Embedded.Sample/Platforms/iOS/Program.cs +++ b/MAUI.Native.Embedded.Sample/Platforms/iOS/Program.cs @@ -1,5 +1,4 @@ -using ObjCRuntime; -using UIKit; +using UIKit; namespace MAUI.Native.Embedded.Sample; diff --git a/MAUI.Native.Embedded.nuget/MAUI.Native.Embedded.nuget.csproj b/MAUI.Native.Embedded.nuget/MAUI.Native.Embedded.nuget.csproj index 83ab181..59a2fa8 100644 --- a/MAUI.Native.Embedded.nuget/MAUI.Native.Embedded.nuget.csproj +++ b/MAUI.Native.Embedded.nuget/MAUI.Native.Embedded.nuget.csproj @@ -1,7 +1,7 @@ - net9.0;net8.0;net7.0;net6.0 + net10.0;net9.0;net8.0;net7.0;net6.0 MAUI.Native.Embedded Library enable @@ -25,13 +25,13 @@ en-US MIT License assets/icon.png + MSBuild dotnet maui xcode native embedded ios appclip widget https://github.com/MarLoe/MAUI.Native.Embedded README.md MIT https://github.com/MarLoe/MAUI.Native.Embedded git true - MSBuild dotnet maui xcode native embedded ios appclip widget From f46ea4d558f123f4497ee19672909382126c7813 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20L=C3=B8bger?= Date: Fri, 9 Jan 2026 13:02:13 +0100 Subject: [PATCH 2/2] Update documentation --- MAUI.Native.Embedded.nuget/README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/MAUI.Native.Embedded.nuget/README.md b/MAUI.Native.Embedded.nuget/README.md index c1b9ee6..d01d5a8 100644 --- a/MAUI.Native.Embedded.nuget/README.md +++ b/MAUI.Native.Embedded.nuget/README.md @@ -6,7 +6,7 @@ You must make sure that the Xcode projects have the correct provisioning profile ## iOS AppClips & iOS Widgets In you main MAUI project (`.csproj`) file you can add one or more of the following line(s); -``` +```xml @@ -21,7 +21,7 @@ Normally in Xcode projects, the main scheme is named the same as the Xcode proje When building your embedded Xcode project the scheme used will be the same name as the Xcode project (`.xcodeproj`) filename. In the example above, the scheme used if not specified will be `Native` You can override scheme like this: -``` +```xml @@ -34,7 +34,7 @@ Normally in Xcode projects, the configurations are called `Debug` and `Release`. When building your embedded Xcode project the configuration names from your MAUI project will be used. You can override configuration like this: -``` +```xml @@ -42,7 +42,7 @@ You can override configuration like this: ``` If the configuration names does not match, you can e.g. do this (works for both `` and ``) -``` +```xml @@ -73,7 +73,7 @@ You can skip validation like this: Especially for CI builds, it can be difficult to get provisionings working. In order to mitigate this, you can skip signing of the Xcode project. I also am skipping signing in the sample app in order for it to build straight out of the box. You can skip signing like this: -``` +```xml @@ -85,7 +85,7 @@ Here are a few hints that might make your life easier. ### Hint: Only add for release builds When e.g. adding AppClips, you might want to only build and embed the native project when making release builds. Do this by adding a condtion: -``` +```xml @@ -95,7 +95,7 @@ When e.g. adding AppClips, you might want to only build and embed the native pro If your Xcode project uses a custom way of storing versions, you can make an custom update here. All you need to do is to add this target to your project (`.csproj`) -``` +```xml @@ -103,13 +103,13 @@ All you need to do is to add this target to your project (`.csproj`) ### Hint: Parse command line parameters to Xcodebuild If you need to parse extra command line parameters to the `xcrun xcodebuild archive ...` you can use the `XcodeParams` attribute. -``` +```xml ``` ### Hint: Testing the Xcodebuild If you need to test and verify that the Xcode build part works, you can build these targets: `BuildAppClips`, `BuildWidgets` or `BuildNativeEmbedded` (to build all). This targets only the Xcode build step and avoids waiting for the entire MAUI project to build. -``` -dotnet build -f:net9.0-ios -t:BuildAppClips,BuildWidgets MAUI.Native.Embedded.Sample/MAUI.Native.Embedded.Sample.csproj +```bash +dotnet build -f:net10.0-ios -t:BuildAppClips,BuildWidgets MAUI.Native.Embedded.Sample/MAUI.Native.Embedded.Sample.csproj ```