Skip to content

docs(ios): Document the stale AOT compiler path - #26121

Merged
MartinZikmund merged 1 commit into
masterfrom
dev/agzi/docs-ios-aot-compiler-cache
Nov 6, 2026
Merged

MartinZikmund merged 1 commit into
masterfrom
dev/agzi/docs-ios-aot-compiler-cache

Conversation

@agneszitte

Copy link
Copy Markdown
Member

GitHub Issue: Related to private#1255

PR Type:

📚 Documentation content changes

What changed? 🚀

  • New section in the iOS common issues page for error MSB4018: The "AOTCompile" task failed unexpectedly, when the build tries to start a mono-aot-cross that no longer exists.
  • Cause: .NET for iOS caches the AOT compiler path in obj/.../aot-compiler-path-<SDK version>.txt. A workload update that keeps the same .NET SDK doesn't refresh it (macios#25481, closed upstream without a fix; the cache logic is unchanged in macios main).
  • Workaround documented: delete bin/obj (or just that one file), and don't install the old compiler to match the path, since the app then fails to link.
  • Why now: QA hit it while validating 6.7 SR3 on macOS. uno.check#600 moves the mono toolchain workload from 10.0.108 to 10.0.114, so uno-check --fix will trigger it on Macs that already built an iOS app.
  • Backports: release/stable/6.7 and servicing/6.8. The file is identical on all three branches.

PR Checklist ✅

  • 🧪 Added Runtime tests, UI tests, or a manual test sample (for bug fixes / features, if applicable): N/A, docs only
  • 📚 Docs have been added/updated following the documentation template (for bug fixes / features): markdownlint and cspell pass locally with build/.markdownlint.json and build/cSpell.json
  • 🖼️ Validated PR Screenshots Compare Test Run results.: N/A, docs only
  • ❗ Contains NO breaking changes
  • 👀 Reviewed 2 other open pull requests (optional but appreciated!)

🤖 Generated with Claude Code

After a workload update, .NET for iOS can keep using a cached AOT
compiler path that no longer exists (dotnet/macios#25481). Explain the
MSB4018 error and the bin/obj cleanup workaround.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@agneszitte
agneszitte requested a review from ajpinedam November 5, 2026 19:38
@agneszitte

Copy link
Copy Markdown
Member Author

@Mergifyio backport release/stable/6.7 servicing/6.8

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @agneszitte's task in 13s —— View job


Review of #26121

Verdict: ship. I found no issues, so I posted no inline comments.

Severity Count
Blocking 0
Minor 0

This is a docs-only change: one new section in doc/articles/common-issues-ios.md.

  • Scope: It has no code, test or sample impact, so the runtime test, unit test and XamlStyler rules don't apply.
  • Structure: The section has a symptom, a cause and a fix, in the same format as the neighbouring entries. It also warns against installing the older AOT compiler, which is useful.
  • Public-reference rule: The page links only to public artifacts (dotnet/macios#25481). The private issue appears only in the PR description, which the AGENTS.md rule on public docs allows.
  • Title and commit: The docs(ios): ... title follows Conventional Commits.
  • Not verified: I did not build the docs or run markdownlint or cspell. I'm relying on your note that both passed locally.
    · Branch: dev/agzi/docs-ios-aot-compiler-cache

@mergify

mergify Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

backport release/stable/6.7 servicing/6.8

✅ Backports have been created

Details

@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund
MartinZikmund merged commit 2ebc67c into master Nov 6, 2026
19 checks passed
@MartinZikmund
MartinZikmund deleted the dev/agzi/docs-ios-aot-compiler-cache branch November 6, 2026 08:33
MartinZikmund added a commit that referenced this pull request Nov 6, 2026
…r-26121

docs(ios): Document the stale AOT compiler path (backport #26121)
agneszitte added a commit that referenced this pull request Nov 7, 2026
…6.7/pr-26121

docs(ios): Document the stale AOT compiler path (backport #26121)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants