Xcode A build only device cannot be used to run this targetというエラー

この記事は約1分で読めます。

環境

・Version 12.5.1 (12E507)

 

No supported iOS devices are available. Connect a device to run your application or choose a simulated device as the destination.

 

原因はアプリのOSのバージョンがシミュレータのOSのバージョンより新しいものが指定されていたことでした。

アプリ側では、Development Targeと、シミュレータの方では各iPhoneのiOSのVerが不一致になっていたため、これらのシミュレータが使えなくなっていたのです。

対処法としては、アプリ側のDevelopment Targetをシュミュレータ側に合わせる(バージョンを下げる)か、Add Aditional Simulater→Devicesウィンドウ左下の+ボタンを押して、アプリより新しいiOSのシミュレータを新しく作成・追加する。

 

コメント

0
    0
    Your Cart
    Your cart is emptyReturn to Shop