Skip to content

Instantly share code, notes, and snippets.

View Lyine0924's full-sized avatar
🍎

Lian Lyine0924

🍎
  • Inchoen, South Korea
View GitHub Profile
@Lyine0924
Lyine0924 / HowTo use xcconfig or plist with SPM.md
Created July 1, 2022 04:14 — forked from 4np/HowTo use xcconfig or plist with SPM.md
How to use a .xcconfig file and a .plist with a Swift Package Manager based project.

How to use a .xcconfig file and a .plist file with SPM

Worth a read for some more context.

Create a Package.xcconfig file

Create the file in the root of the project (where your Package.swift file lives as well), and use the following contents:

/// Package.xcconfig
//
// ViewController.swift
// CollectionViewPractice
//
// Created by nTom on 2020/10/26.
// Copyright © 2020 CollectionViewPractice. All rights reserved.
//
import UIKit
import SnapKit