본문 바로가기
스파르타코딩 클럽/본 캠프

16. 스파르타 코딩클럽 [본캠프 - 온보딩 16일차]

by UDDT 2025. 3. 25.

16일차 - 강의 주차(+ 과제 포함)

강의. iOS 앱 개발 입문 Recap : iOS 개요

 Xcode 이해

  - Xcode : IDE(통합 개발 환경, Intergrated Development Environment)

 

  - Xcode Release Notes

    https://developer.apple.com/documentation/xcode-release-notes

 

Xcode Release Notes | Apple Developer Documentation

Learn about changes to Xcode.

developer.apple.com

 

 

  - Xcodes : 여러가지 버전의 Xcode를 하나에 담고 있는 프로그램

     https://github.com/XcodesOrg/XcodesApp

 

GitHub - XcodesOrg/XcodesApp: The easiest way to install and switch between multiple versions of Xcode - with a mouse click.

The easiest way to install and switch between multiple versions of Xcode - with a mouse click. - GitHub - XcodesOrg/XcodesApp: The easiest way to install and switch between multiple versions of Xc...

github.com

 Xcode 둘러보기

  - project창 이해하기

  * 애플 개발자 인증서는 추후 앱 등록을 할때 사용하는 것(애플에 친구비 - 연회비 내야함)

 

  - 프로젝트 기본화면 이해하기

 

  - Navigator 영역 이해하기

단축키 :
⌘ + 0 : Inspector창 열기 / 닫기
⌘ + 1 : Project Navigator 
⌘ + 2 : Source Control Navigator 
⌘ + 3 : BookMark 
⌘ + 4 : Search Navigator 
⌘ + 5 : Issue Navigator
⌘ + 6 : Test Navigator 
⌘ + 7 : Debug Navigator
⌘ + 8 : BreakPoint Navigator
⌘ + 9 : Report Navigator

 

  - Inspector 영역 이해하기

단축키 :
⌘ + opt + 0 : Inspector창 열기 / 닫기
⌘ + opt + 1 : File Inspector
⌘ + opt + 2 : History Inspector
⌘ + opt + 3 : Quick Help Inspector
⌘ + opt + 4 : Identity Inspector
⌘ + opt + 5 : Attribute Inspector
⌘ + opt + 6 : Size Inspector
⌘ + opt + 7 : Connection Inspector

 

  - 문서용 주석 만들기

 

 

  - Editor 영역 이해하기

단축키 :
option + 파일 클릭 : 화면 분할
⌘ + : 화면 확대
⌘ - : 화면 축소
(중괄호에서) ⌘ + option + ← :  화면 접기
(중괄호에서) ⌘ + option + → :  화면 펴기
control + ⌘ + ← : 뒤로 가기
control + ⌘ + → : 앞으로 가기

 

  - Debug 영역 이해하기

⌘ + shift + Y : 디버그 영역 열기 / 닫기

 

  - Toolbar 영역 이해하기

 

강의. iOS 앱 개발 입문 Recap : Xcode 빌드

 빌드하기 전 기초 개념

     1. 컴파일 : A언어(사람 친화적인 컴퓨터 언어)를 B언어(기계 친화적인 언어)로 바꿔주는 것

     2. 빌드 : 컴파일이 된 모든 Resource를 실행 가능한 무언가(소프트웨어 산출물)로 바꾸는 과정

     3. 앱 생명주기(App LifeCycle) :

          - Unattached : 실행이 되지 않은 상태

          - Inactive : 앱을 실행은 했으나, 사용자로부터 이벤트를 받을 수 없는 상태

          - Active : 앱을 실행했고, 사용자로부터 이벤트를 받을 수 있는 상태

          - Background : 앱을 실행하고 홈 화면으로 나갔을 때, 화면 뒤로 넘어가서 실행 중인 상태(유튜브 뮤직)

          - Suspended : Background에서 메모리 과부하가 걸리기 전 메모리를 정리하는 상태

          

Apple 앱 생명주기

      https://developer.apple.com/documentation/uikit/managing-your-app-s-life-cycle

 

Managing your app’s life cycle | Apple Developer Documentation

Respond to system notifications when your app is in the foreground or background, and handle other significant system-related events.

developer.apple.com

 

     4. AppDelegate & SceneDelegate :

         AppDelegate : App Lifecycle 관련 메서드 제공

         SceneDelegate : Scene 관련 메서드 제공

AppDelegate

 

SceneDelegate

     5. firstParty & thirdParty :

         firstParty : 애플의 오피셜한 제공 도구(Swift UIKit 등)

         thirdParty : 애플이 아닌 제 3자가 제공하는 도구(SnapKit, Alamofire, KINGFISHER, Swinject 등)

 

 디버깅(Debugging)

     1. 디버깅 : 소프트웨어에서 발생하는 오류(bug)를 찾아내고 수정하는 과정

     2. print문을 사용한 디버깅 :

         코드 하단에 print로 결과를 출력하는 방법(런타임 이후에만 값을 알 수 있을 때 사용하면 효과적임)

 

     3. OSLog를 활용한 디버깅 :

         콘솔에 Log를 출력해서 디버깅

         * 로그에는 레벨이 있음(default, debug, info, error, fault)

 

 lldb를 사용한 디버깅

         lldb : low level debuger(lldb는 breakPoint와 같이 사용하면 효과적)

 

 

최근댓글

최근글

skin by © 2024 ttuttak