Home / Notes

公開日
最終確認日

Xcode 27「The macOS deployment target MACOSX_DEPLOYMENT_TARGET is set to 11.0〜」のエラーを解消する(2026年8月)

XcodeXcode 27 にアップデートしたところmacOS向けにビルドができなくなった。SwiftUIで macOS / iOS 両対応してあるアプリで発生。

環境

  • Xcode 27.0 Beta
  • macOS 27.0 Beta

エラー内容

The macOS deployment target ‘MACOSX_DEPLOYMENT_TARGET’ is set to 11.0, but the range of supported deployment target versions is 12.0 to 27.0.x.

該当箇所は TARGET > Build Settings > macOS Deployment Target

Xcode27でThe macOS deployment target〜のエラーを解消する_2026年8月_-1785912045695

これが macOS 27 Golden Gate になっているのを確認。

エラー内容的には MACOSX_DEPLOYMENT_TARGET が 11.0 に設定されているとのことだが。

調査

参考になりそうな記事を見つけた。

原因

テストターゲット側の設定が macOS 11.5 に設定されていた。

Xcode27でThe macOS deployment target〜のエラーを解消する_2026年8月_-1785912170386

これを Recommended に設定した。12以上であればok。

Xcode27でThe macOS deployment target〜のエラーを解消する_2026年8月_-1785912217216

あわせてメインターゲットの方も Recommended に設定。

iOSも対応

続いてiOSの方もエラーが出たので対応。

The iOS deployment target ‘IPHONEOS_DEPLOYMENT_TARGET’ is set to 14.0, but the range of supported deployment target versions is 15.0 to 27.0.x.

15以上に設定する。今回は17以上に設定。

Xcode27でThe macOS deployment target〜のエラーを解消する_2026年8月_-1785912537034

Testターゲットの方も忘れずに対応。

© 2015 うるおいらんど
とじる