项目作者: IgorMuzyka

项目描述 :
A Swift Package to suppress warnings in Xcode project generated by SwiftPackageManager
高级语言: Swift
项目地址: git://github.com/IgorMuzyka/ignore.git
创建时间: 2019-03-15T08:20:21Z
项目社区:https://github.com/IgorMuzyka/ignore

开源协议:MIT License

下载


⚠️ 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.

  1. #if canImport(IgnoreConfig)
  2. import IgnoreConfig
  3. // add the list of targets you wish to preserve the warnings for as excluded
  4. IgnoreConfig(excludedTargets: ["YourMainTarget", "SomeOtherTargetOfYours"]).write()
  5. #endif

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

  1. swift run phase

Installation

Add dependency to dependencies in your project Package.swift

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

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

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

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

  1. swift run package-config # builds PackageConfigs dependencies