Skip to content

fenli/DotEnvSecretPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SwiftBuildPluginTemplate

Template repository for creating new SPM / Xcode build plugins project

How to install

SPM

Add this configuration to your Package.swift:

dependencies: [
    .package(url: "https://github.com/MyGithubUser/MyPlugin", from: "0.1.0"),
],

Then add the plugins to your target:

.target(
    name: "MyProjectPackage",
    plugins: [
        .plugin(name: "MyPlugin", package: "MyPlugin")
    ]
)

XCode

Integration into Xcode project:

  • In Xcode root project, navigate to your targets list in side bar.
  • Select target to integrate (usually app or library target).
  • Go to Build Phase -> Run Build Tool Plug-ins -> Add the plugin

Build on CI

If you are building on CI server, you have to add this as the xcodebuild command arguments to bypass xcode validation:

-skipPackagePluginValidation
-skipMacroValidation

Or if you are building on Xcode Cloud, you can disable it by adding this to ci_scripts/ci_post_clone.sh:

defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES
defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES

About

Swift Package / Xcode plugin to generate secrets from dotenv (*.env) files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages