Hello @Kim Strasser !
This is a common build issues in .NET iOS projects (often MAUI or Xamarin.iOS). These stem from the IL Linker (formerly IL Trimmer), a tool that optimizes .NET assemblies for iOS by trimming unused code and creating a linked output.
Your project builds fine in VS 2022 (v17.14.19) because that version uses more stable, mature toolchains for .NET (likely .NET 8 or earlier). In VS 2026 Insiders (build 11123.170), you're targeting .NET 9.0-iOS, which introduces experimental changes to the linker and SDK that can cause instability in pre-release builds.
Following reported cases for this similar issue, here are steps you can try as they resolve 80% mostly:
Clean and Rebuild Everything:
- In VS 2026, right-click your solution > Clean Solution, then delete the
binandobjfolders manually from File Explorer.- Rebuild (Build > Rebuild Solution). This is ensure some stale artifacts from VS 2022 can not conflict with .NET 9's linker.
Disable Linking Temporarily:
- Right-click your iOS project > Properties > iOS Build tab.
- Uncheck Enable link all (or set Linker Behavior to "Don't Link").
- Rebuild and debug.
- If it works, the issue is linker-specific. You can report it via Help > Send Feedback in VS.
Verify Remote Mac Setup: Linking happens remotely; network/server errors (e.g., "Cannot execute process on server") are common culprits.
- Ensure your Mac (with Xcode 16+ and .NET 9 SDK) is paired correctly: Tools > iOS > Pair to Mac.
- Test the connection: Run
dotnet workload install ioson the Mac via SSH. - Restart VS and reconnect.
- Test the connection: Run
Check/Update Provisioning and Signing: .NET 9 enforces stricter checks, and old profiles from VS 2022 may expire or mismatch.
- In Project Properties > iOS > Bundle Signing, ensure Automatic Provisioning is selected and your Apple Developer account is linked.
- Refresh profiles: Xcode on Mac > Preferences > Accounts > Download Manual Profiles.
Downgrade Target Framework: You can sticks closer to your VS 2022 setup. Upgrade back once stable.
- Edit your
.csproj: Change<TargetFramework>net9.0-ios</TargetFramework>to<TargetFramework>net8.0-ios</TargetFramework>.- Restore NuGet packages and rebuild.
I hope this helps! Let me know if you stuck anywhere! If you find this answer useful, kindly mark this as final answer to your question!