PC パソコン

How to Fix “air-lld: error: symbol(s) not found for target ‘air64_v28-apple-macosx26.0.0’” in Xcode 27 Beta 5

When Xcode 27 Beta 5 links a Core Image custom kernel written in Metal Shading Language for macOS 26, the build can fail with air-lld: error: symbol(s) not found for target 'air64_v28-apple-macosx26.0.0'. The preceding warning identifies an AIR version mismatch in CoreImage.metallib. The recommended fix is Xcode 27 Beta 6 or later.

The error

air-lld: warning: ignoring file '.../CoreImage.framework/.../CoreImage.metallib',
file AIR version (2.9) is bigger than the one of the target being linked (2.8)

air-lld: error: symbol(s) not found for target 'air64_v28-apple-macosx26.0.0'

metal: error: air-lld command failed with exit code 1 (use -v to see invocation)

The warning is the key diagnostic. The Core Image Metal library bundled with Xcode 27 Beta 5 uses AIR 2.9, while the macOS 26 link target uses AIR 2.8. The incompatible library is ignored, leaving the required symbols unresolved.

Cause, conditions, and affected version

  • Xcode 27.0 Beta 5 is selected.
  • The project builds a Core Image custom kernel with Metal Shading Language.
  • The project back deploys to macOS 26 or earlier.
  • The Metal link uses the Core Image framework.

Affected version: Xcode 27.0 Beta 5.

Fixed version: Xcode 27.0 Beta 6 and later. The author of the Apple Developer Forums report confirmed the fix in the accepted answer. No separate public Feedback number or release-note entry naming this exact failure was found.

Apple’s Xcode requirements list macOS 12 through 27 as supported deployment targets for Xcode 27, so targeting macOS 26 is not itself invalid.

Recommended solution

1. Confirm the selected Xcode

xcodebuild -version
xcode-select -p
xcrun --find metal

If multiple Xcode installations exist, verify that the GUI, command line, and CI all reference the intended developer directory.

2. Upgrade to Xcode 27 Beta 6 or later

Install Beta 6 or a later Xcode 27 beta, RC, or final release containing the correction. Select a side-by-side installation as follows:

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
xcodebuild -version

3. Clean after switching toolchains

Choose Product > Clean Build Folder. In CI, update the Xcode path and rebuild relevant caches so Metal intermediates generated by Beta 5 are not reused.

4. Verify the deployment target

xcodebuild -showBuildSettings | grep MACOSX_DEPLOYMENT_TARGET

Confirm that the app target, Metal library target, and CI use the intended macOS deployment version. Xcode 27 supports back deployment to macOS 26, so this error alone does not require raising the minimum OS to macOS 27.

Alternatives when an immediate upgrade is impossible

  • Temporarily use the last validated Xcode: Build with a side-by-side installation such as Xcode 26.6 that the project previously passed with. Re-test the commit in CI and on devices because SDK and compiler versions differ.
  • Use a macOS 27 target only as a diagnostic: Matching the AIR 2.9 target may let Beta 5 link, but it drops macOS 26 and earlier support. Do not treat this as a permanent substitute for the corrected toolchain unless product requirements permit it.
  • Create a minimal reproducer: Keep only the Core Image Metal kernel and link settings to distinguish the SDK AIR mismatch from ordinary undefined symbols.

Verification

  1. Confirm that xcodebuild -version reports Beta 6 or later.
  2. Run a clean build and verify that the AIR 2.9/2.8 warning and air64_v28 error disappear.
  3. Run the app on the oldest supported macOS and exercise the affected Core Image filter.
  4. Repeat the build in CI with the same Xcode explicitly selected.

Cautions

  • MTL_LANGUAGE_REVISION=Metal41 reportedly allowed Beta 5 to link, but the app then crashed because Metal 4.1 is unsupported on macOS 26. It is not a valid fix for that deployment target.
  • Do not copy CoreImage.metallib or the Core Image framework from another SDK. Mixing SDK internals is unsupported and harms reproducibility.
  • Deleting DerivedData alone cannot repair the library bundled with Beta 5. Clean only after changing to a corrected toolchain.
  • Do not diagnose from symbol(s) not found alone; confirm that the preceding warning names CoreImage.metallib and AIR 2.9 versus 2.8.

Summary

The air64_v28 failure in Xcode 27 Beta 5 accompanies an AIR mismatch between the SDK’s Core Image library and the macOS 26 link target. Upgrade to Xcode 27 Beta 6 or later, verify the selected toolchain, and rebuild cleanly.

Official references