Language/iOS,AOS

iOS/Xcode 14X, Swift5.7.2 WKWebView - Tuist

건담아빠 2023. 1. 2. 15:41

 

Tuist란?

- Xcode 프로젝트의 구조를 관리하는 command line tool

Tuist를 사용하여 모듈화를 진행해 보자.

Tuist 설치

$ curl -Ls https://install.tuist.io | bash

$ tuist version
  3.15.0

 

Tuist로 프로젝트 생성

$ mkdir ios-tuist
$ cd ios-tuist

$ tuist init --platform ios

 

폴더 구조확인

tree가 설치되어 있지 않다면 설치 (brew install tree)

$ tree .
  zsh: command not found: tree
  
$ brew install tree

$ tree .
.
├── Plugins
│   └── TestIosTuist
│       ├── Package.swift
│       ├── Plugin.swift
│       ├── ProjectDescriptionHelpers
│       │   └── LocalHelper.swift
│       └── Sources
│           └── tuist-my-cli
│               └── main.swift
├── Project.swift
├── Targets
│   ├── TestIosTuist
│   │   ├── Resources
│   │   │   └── LaunchScreen.storyboard
│   │   ├── Sources
│   │   │   └── AppDelegate.swift
│   │   └── Tests
│   │       └── AppTests.swift
│   ├── TestIosTuistKit
│   │   ├── Sources
│   │   │   └── TestIosTuistKit.swift
│   │   └── Tests
│   │       └── TestIosTuistKitTests.swift
│   └── TestIosTuistUI
│       ├── Sources
│       │   └── TestIosTuistUI.swift
│       └── Tests
│           └── TestIosTuistUITests.swift
└── Tuist
    ├── Config.swift
    └── ProjectDescriptionHelpers
        └── Project+Templates.swift

 

Tuist 설정 변경

Project.swift 파일을 원하는 환경으로 변경

$ tuist edit

 

Project.swift 내용 적용

$ tuist generate






참조

https://docs.tuist.io/tutorial/get-started/

 

Get started | Tuist Documentation

Learn how to install Tuist in your environment and generate your first project.

docs.tuist.io

https://tuist.io/

 

Xcode on steroids | Tuist

Tuist is a tool that helps developers manage large Xcode projects by leveraging project generation. Moreover, it provides some tools to automate most common tasks, allowing developers to focus on building apps.

tuist.io

https://ios-development.tistory.com/1006?category=899471

 

[iOS - swift] 4. 모듈화 개념 - Tuist로 프로젝트 관리 방법

1. 모듈화 개념 - Library vs Framework (static library, dynamic library, static framework, dynamic framework) 2. 모듈화 개념 - Binary File 개념 (Mach-O, CPU Architectures, Universal binary, lipo command) 3. 모듈화 개념 - XCFramework 생성

ios-development.tistory.com

https://silver-g-0114.tistory.com/150

 

[iOS] Tuist 를 활용한 프로젝트 모듈화 (1)

안녕하세요! 굉장히 오랜만에 포스팅을 작성합니다. 오늘은 tuist 를 활용한 프로젝트 모듈화를 소개해보려고 합니다. 회사에서는 이미 tuist 를 사용하고 있었지만 기능 단위로 모듈화를 하고 있

silver-g-0114.tistory.com

https://okanghoon.medium.com/xcode-%ED%94%84%EB%A1%9C%EC%A0%9D%ED%8A%B8-%EA%B4%80%EB%A6%AC%EB%A5%BC-%EC%9C%84%ED%95%9C-tuist-%EC%95%8C%EC%95%84%EB%B3%B4%EA%B8%B0-6a92950780be

 

Xcode 프로젝트 관리를 위한 Tuist 사용해보기

최근 Tuist 라는 Xcode 프로젝트 관리 도구를 알게 되었습니다. 이전에 살펴본 XcodeGen 과 유사하게 Xcode 프로젝트를 생성 및 관리할 수 있는 도구입니다. 오늘은 이 Tuist 를 가볍게 사용해 보면서 알

okanghoon.medium.com