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
- swift concurrency
- custombottomsheet
- Tuist
- custom navigation bar
- swift custom ui
- domain data
- reactorkit
- task cancellation
- swift dashed line
- traits
- UIKit
- rxdatasources
- scene delegate
- custom ui
- identifiable
- 버튼 피드백
- uikit toast
- task cancel
- 타임라인 포맷팅
- swift 백준
- BFS
- button configuration
- swift navigationcontroller
- swift bottomsheet
- coordinator
- swift 점선
- SWIFT
- RxSwift
- claen architecture
- DP
Archives
- Today
- Total
김경록의 앱 개발 여정
[Swift] Tuist를 통한 SPM 라이브러리 의존성 관리하기 본문
import ProjectDescription
let dependencies = Dependencies(
swiftPackageManager: .init(
[
.remote(url: "https://github.com/SnapKit/SnapKit.git", requirement: .upToNextMinor(from: "5.0.1")),
.remote(url: "https://github.com/Swinject/Swinject.git", requirement: .exact("2.8.0")),
.remote(url: "https://github.com/ReactiveX/RxSwift.git", requirement: .upToNextMajor(from: "6.0.0")),
.remote(url: "https://github.com/ReactorKit/ReactorKit.git", requirement: .upToNextMajor(from: "3.0.0"))
]
),
platforms: [.iOS]
)
- 기존의 tuist로 작성된 프로젝트 파일 디렉토리 접근
- 터미널에 tuist edit을 통해 Manifests -> Tuist -> OrihectDesctiptionHelpers -> Dependecies 에서 라이브러리 추가 및 수정
(Finder를 통해 찾아 들어가도 가능) - project.swift수정
- 터미널에서 tuist fetch 입력
- 터미널에서 tuist generator 입력
- The file is located at “yourProject”. Do you want to keep the Xcode version, or use the version on disk?
이라는 문구에 Version on Disk 선택하면 변경사항 확인 가능
주의사항
Keep the Xcode version: 현재 Xcode에 로드된 프로젝트 파일을 유지.
만약 이미 Xcode 내에서 변경사항을 가했다면, 이 옵션을 선택하여 그 변경사항을 유지할 수 있습니다.
use the version on disk: 디스크에 저장된 버전으로 교체. 이는 다른 개발자가 수행한 변경사항을 적용하거나, 소스 코드 관리를 통해 최신 코드를 가져온 경우 유용할 수 있습니다.
'TIL' 카테고리의 다른 글
[Swift] ReuseIdentifier 하드 코딩 줄이기 (0) | 2025.01.09 |
---|---|
[Swift] Swift의 패턴 매칭(Pattern Matching) 기능을 효과적으로 사용하는 방법은 무엇인가요? (0) | 2025.01.09 |
[Swift] existential type과 any키워드(Boxed Protocol Type) (0) | 2025.01.09 |
[Swift] 스위프트 패러다임 (0) | 2025.01.09 |
[Swift] coordinator 패턴 사용시 memory leak 주의점 (0) | 2025.01.08 |