Could not locate device support filesというエラー

エラー内容

XcodeiOSアプリをビルドしようとしたら以下のようなエラーが出ました。

Could not locate device support files

This iPhone 6  is running iOS 12.2 (16E227), which may not be supported by this version of Xcode.

 

 調べてみたら、どうやらXcodeがiOS12.2のバーションに対応していないことが原因のようでした。

 

 

 

解決方法

解決するには、以下のページからiOSのバージョンのzipファイルをダウンロードし、解凍したフォルダを

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

配下に置いてあげます。

 

 

github.com

 

 

その後Xcodeを一旦閉じて、再起動すればビルドできるようになります!!