cozzin
코찐 기술 블로그
cozzin
전체 방문자
오늘
어제
  • 분류 전체보기
    • Kotlin
    • 백엔드
    • iOS
      • Swift
      • SwiftUI
      • Combine
      • Architecture
    • 개발환경
    • 세미나
    • 생각정리
    • 스터디
    • CS
      • Refactoring
      • OS

블로그 메뉴

  • 홈
  • 태그
  • 방명록
  • LinkedIn
  • 강의

공지사항

인기 글

태그

  • 운영체제
  • SwiftUI
  • XCode
  • WWDC
  • darkmode
  • multicast
  • Warning
  • 컴퓨터공학
  • 디자인패턴
  • Ribs
  • ios
  • 테스트
  • 워닝제거
  • 리팩토링
  • Combine
  • os
  • slide-over
  • CS
  • Swift
  • WWDC21

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
cozzin

코찐 기술 블로그

Xcode 파일별 빌드 속도 측정
iOS

Xcode 파일별 빌드 속도 측정

2021. 1. 4. 17:03
반응형

https://www.onswiftwings.com/posts/build-time-optimization-part1/

 

Xcode Build Time Optimization - Part 1

Discover techniques to measure and speed up the build time in Xcode

www.onswiftwings.com

Xcode에 일단 빌드 시간을 표시 해주기

터미널에 아래 명령어 입력

defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES

 

Builde Setting > Other Swift Flags에 이렇게 등록하면 조건에 따라 워닝을 띄워줍니다.

 

  • -Xfrontend -warn-long-function-bodies=100
    function 빌드에 100ms 보다 더 걸리는 경우에 워닝
  • -Xfrontend -warn-long-expression-type-checking=100
    type 빌드에 100ms 보다 더 걸리는 경우에 워닝

해당 라인에 이렇게 워닝이 뜨게 됩니다ㅠ

타입 추론이 다양하게 사용되는 경우, 워닝이 엄청 많이 뜸

반응형
저작자표시 (새창열림)

'iOS' 카테고리의 다른 글

워닝 제거하기: Implicit import of bridging header '{YourApp}-Bridging-Header.h' via module '{YourApp}' is deprecated and will be removed in a later version of Swift  (0) 2021.01.29
[iOS] grouped style tableView에서 위아래 여백 제거하기  (0) 2021.01.28
[iOS] 이슈 해결: CloudKit integration does not support unique constraints  (0) 2021.01.23
[iOS] UITextField placeholder color 변경하기  (0) 2021.01.20
[iOS] overrideUserInterfaceStyle 부분 적용하기  (0) 2021.01.20
    'iOS' 카테고리의 다른 글
    • [iOS] grouped style tableView에서 위아래 여백 제거하기
    • [iOS] 이슈 해결: CloudKit integration does not support unique constraints
    • [iOS] UITextField placeholder color 변경하기
    • [iOS] overrideUserInterfaceStyle 부분 적용하기
    cozzin
    cozzin
    Software Engineer

    티스토리툴바