본문 바로가기

Development/iOS

Xcode 6 에서 깨끗한 프로젝트 생성하기.

Xcode 5 까지는 프로젝트를 생성할때 Empty Application template 을 선택해서 스토리보드나 xib 파일이 없는 깨끗한 프로젝트를 생성.
(내가 가장 선호하던 방법.)
 
Xcode 6 부터는 Empty 하나만 남았는데 이걸로 프로젝트를 생성하면 정말 아무것도 없는 프로젝트가 생성된다.
이렇게 하지 말고, 
 
 
1. Single View Application 프로젝트를 선택후 생성.
 
2. Main.storyboard, launchscreen.xib 파일 삭제.
 
3. SupportingFiles > Info.plist 파일을 열어서
 
- Main storyboard file base name 에서 Main 스토리보드 이름 제거.

 

- Launch screen interface file base name 에서 파일 이름 제거.
 

 

4. AppDelegate.m 파일의 didFinishLauchingWithOptions 메소드 안에 
 
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];
 
위 내용을 추가한다.