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 | 29 | 30 | 31 |
Tags
- Widget
- protocol
- it
- enumerations
- pubspec.yaml
- listview
- Leetcode
- xcode
- tip
- COMMIT
- basic
- pubspec
- Equatable
- swiftlint
- flutter
- GIT
- reetcode
- Extentsion
- github
- IOS
- algorithm
- dart
- designPattern
- Swift
- keyWindow
- SwiftGen
- toyproject
- ToDoRim
- UIAccessibility
- OSLog
Archives
- Today
- Total
목록debug (1)
수니의 개발새발
코드에서 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