My personal cheat sheet for things to remember
Make a build and write the full log to publish.log. Good for debugging MSBuild.
dotnet publish -f:net10.0-ios -v:diag --tl:off MAUI.Native.Embedded.Sample/MAUI.Native.Embedded.Sample.csproj > publish.log
In order to build for device (and not simulator) you must provide the RuntimeIdentifier.
This makes a debug build for iOS device.
dotnet build -f:net10.0-ios -r:ios-arm64 MAUI.Native.Embedded.Sample/MAUI.Native.Embedded.Sample.csproj
xcodebuild -showBuildSettings -scheme MAUI.Native.Embedded.ios -project MAUI.Native.Embedded.Sample/Platforms/iOS/MAUI.Native.Embedded.ios/MAUI.Native.Embedded.ios.xcodeproj