Swiftpack.co - IgorMuzyka/ignore as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by IgorMuzyka.
IgorMuzyka/ignore 0.0.2
A Swift Package to suppress warnings in Xcode project generated by SwiftPackageManager
⭐️ 9
🕓 4 years ago
.package(url: "https://github.com/IgorMuzyka/ignore.git", from: "0.0.2")

⚠️ ignore

A Swift Package that allows you to ignore you Package.swift dependencies warnings.

Usage

Define IgnoreConfig at the very bottom of you Package.swift like this.

#if canImport(IgnoreConfig)
import IgnoreConfig

// add the list of targets you wish to preserve the warnings for as excluded
IgnoreConfig(excludedTargets: ["YourMainTarget", "SomeOtherTargetOfYours"]).write()
#endif

Whenever you add another dependency with warnings just or regenerate xcodeproj just run this from directory with your Package.swift.

swift run phase

Installation

Add dependency to dependencies in your project Package.swift

dependencies: [
    .package(url: "https://github.com/IgorMuzyka/ignore", from: "0.0.2"),
]

Add target PackageConfigs to your targets and list the IgnoreConfig there:

.target(name: "PackageConfigs", dependencies: [
    "IgnoreConfig",
])

To make sure you can run ignore run this in your project directory with Package.swift

swift run package-config # builds PackageConfigs dependencies

GitHub

link
Stars: 9
Last commit: 4 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics