ARCHIVES

태그

신고하기

상단 메뉴 페이지

기본 콘텐츠로 건너뛰기

[iOS] xCode12.1 에서 프로젝트 생성하고 SceneDelegate 삭제 방법.

최근에 나온 SwiftUI를 테스트 하고 있지만 

실제 업무에서는 최소버전은 12.0으로 잡고 개발하고 있다. 점유율 체크

그래서 프로젝트 생성하고 SceneDelegate 삭제해서 사용 해야 한다.

아마도 내년 하반기 되서 "iOS 15" 가 나오면 완전히 SwiftUI 로 가지 않을까 싶다.


1. AppDelegate에서 window 추가
2. configurationForConnecting, didDiscardSceneSessions 삭제

import UIKit


@main

class AppDelegate: UIResponder, UIApplicationDelegate {

    

    var window: UIWindow?


    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

        // Override point for customization after application launch.

        return true

    }


}


3. SceneDelegate 파일 삭제
4. Info.plist 파일에서 "Application Scene Manifest" 삭제



댓글