250x250
반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Swift
- toyproject
- SwiftGen
- Widget
- dart
- flutter
- basic
- Extentsion
- xcode
- enumerations
- tip
- it
- algorithm
- designPattern
- Equatable
- protocol
- swiftlint
- Leetcode
- ToDoRim
- keyWindow
- listview
- COMMIT
- IOS
- pubspec
- UIAccessibility
- GIT
- github
- pubspec.yaml
- OSLog
- reetcode
Archives
- Today
- Total
목록debug (1)
수니의 개발새발
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/MsUxr/btrx6oB4as6/3tnlm4AB8nki9ynZ4aJph0/img.png)
코드에서 Debug 모드 분기 처리하는 방법을 알아보다가, 전처리기 사용에 대하여 알게 되었습니다. 📌 이번 글은 Xcode, Swift에서 전처리문 사용법입니다. 전처리기/전처리문 컴파일 전에 처리되는 일련의 작업 Active Compilation Conditions xcode에서 디폴트로 지원하는 전처리 플래그입니다. 전처리문 소스코드 소스코드에서 #if~ 문을 통해 컴파일 유무를 정의할 수 있다. #if 조건문 ... #endif Debug 분기 #if DEBUG print("Debug 모드") #endif OS 분기 #if os(iOS) print("iOS") #elseif os(macOS) print("macOS") #elseif os(watchOS) print("wathOS") #endif 🙋..
iOS - Swift
2022. 4. 1. 10:36