iOS/Swift

Swift) SwiftLint 적용

Brad_Heo 2022. 9. 10. 17:22

SwiftLint 적용

1. cocoapods 설치

터미널에서 `sudo gem install cocoapods`

2. 프로젝트 파일에 pod 적용

터미널에서 `pod init`

3. Podfile에 pod SwiftLint 내용 추가

4. 터미널에서 pod install 명령 실행

5. Xcode에 SwiftLint 적용

  • Target -> build phase -> new run script phase

6. run script 입력

  • ${PODS_ROOT}/SwiftLint/swiftlint

'iOS > Swift' 카테고리의 다른 글

Swift) Delegate, Notification 둘 중 어느 것을 사용해야 할까  (0) 2022.10.12
Swift) Realm 연동하기  (0) 2022.10.12
Swift) DatePicker  (0) 2022.09.10
Swift) TableView Swipe  (0) 2022.08.20
Swift) Localize  (0) 2022.08.18