XCode12.2 で新規iOSプロジェクト作成後に、iOS Deployment Target を iOS13.0 に変更したところ、以下のようなエラーになりました。
‘main()’ is only available in iOS 14.0 or newer
‘main()’ は iOS 14.0 以上から使用可能とのこと。
このエラーを回避するには、新規iOSプロジェクトを作成する際に、Life Cycle で “UIKit App Delegate” を選択します。
![](https://kita-note.com/wp/wp-content/uploads/2020/11/82e00f19ca7bd9a664a76b902d8c02cd-1024x737.png)
これで、新規iOSプロジェクト作成後に、iOS Deployment Target を iOS13.0 に変更してもエラーが出なくなります。