-
[iOS교육] XCode가 생성한 파일 삭제 방법Programming/Swift(iOS) 2023. 5. 4. 09:31728x90
XCode가 자동 생성한 파일을 제거하는 방법 #1
1) 자동 생성된 파일 제거
.swift 파일 3개 AppDelegate, SeceneDelegate, ViewController storyboard 파일 2개 Main, LaunchScreen 2) info에서 "Application Scene Manifest" 제거
3) 프로젝트 설정에서 아래 2개 항목 값을 제거(공백상태)
- Main Interface
- Launch screen File
emulator로 실행시켜보면, 앱이 실행되었다가 바로 사라짐
XCode가 자동 생성한 파일을 제거하는 방법 #2
1) 자동 생성된 파일 제거
.swift 파일 3개 SeceneDelegate, ViewController storyboard 파일 2개 Main, LaunchScreen 2) info에서 "Application Scene Manifest" 제거
3) 프로젝트 설정에서 아래 2개 항목 값을 제거(공백상태)
- Main Interface
- Launch screen File
4) AppDelegate에서 SceneDelegate 함수 2개 제거
5) AppDelegated에서 @main 추가
// // AppDelegate.swift // AppDel1 // // Created by hy on 2023/05/04. // import UIKit @main class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } }
emulator로 실행시켜보면, 앱이 실행되었다가 바로 사라짐
'Programming > Swift(iOS)' 카테고리의 다른 글
[iOS 교육] window를 생성하는 방법 (0) 2023.05.04 [iOS 교육] (0) 2023.05.04 Swift 화면간 데이터 전달 (0) 2021.09.07 Swift 화면 전환 방법 (0) 2021.09.07 mac os에서 시스템 키체인을 사용하고자 합니다. (0) 2021.06.10