티스토리 뷰

iOS

[iOS] Tuist 사용법 - Project Settings (3)

Kim_Baechu 2021. 9. 17. 12:00

objc Bridging Header

Settings의 base에 해당하는 딕셔너리입니다.

let baseSettings: [String: SettingValue] = [
    "SWIFT_OBJC_BRIDGING_HEADER": "MyApp/Source/MyApp-Bridging-Header.h",
]

 

Project Version (Xcode에서 version, build에 해당)

Settings의 base에 해당하는 딕셔너리입니다.

let baseSettings: [String: SettingValue] = [
    "MARKETING_VERSION": "1.0",
    "CURRENT_PROJECT_VERSION": "1.0.0.6"
]

 

 

plist로도 설정합니다.

let cfBundleURLTypes: [InfoPlist.Value] = []

let infoPlist: [String: InfoPlist.Value] = [
    "CFBundleDisplayName": "MyApp",
    "CFBundleShortVersionString": "1.0",
    "CFBundleVersion": "1.0.0.6",
]

 

Configurations 설정

let projectSettings = Settings(
    base: baseSettings,
    configurations: [
        .debug(name: "Base", xcconfig: .relativeToRoot("Xcconfig/base.xcconfig")),
        .debug(name: "Debug", xcconfig: .relativeToRoot("Xcconfig/debug.xcconfig")),
        .debug(name: "Dev", xcconfig: .relativeToRoot("Xcconfig/dev.xcconfig")),
        .debug(name: "QA", xcconfig: .relativeToRoot("Xcconfig/qa.xcconfig")),
        .debug(name: "Staging", xcconfig: .relativeToRoot("Xcconfig/staging.xcconfig")),
        .release(name: "Release", xcconfig: .relativeToRoot("Xcconfig/release.xcconfig")),
    ]
)

 

DeploymentTarget

let deploymentTarget: DeploymentTarget = .iOS(targetVersion: "11.0", devices: [.iphone])

 

 

Entitlements

Target 초기화에 써줍니다.

entitlements: " MyApp/Source/MyApp.entitlements",
댓글
공지사항