Easily generate Xcode workspaces & playgrounds from a Swift script or command line tool.
Generate workspaces:
import Xgen
let workspace = Workspace(path: "~/MyWorkspace")
workspace.addProject(at: "~/MyProject.xcodeproj")
try workspace.generate()
Generate playgrounds:
import Xgen
let code = "import Foundation\n\n" +
"print(\"Hello world\")"
let playground = Playground(path: "~/MyPlayground", platform: .iOS, code: code)
try playground.generate()
$ marathon add [email protected]:JohnSundell/Xgen.git
.[email protected]:JohnSundell/Xgen.git
to your Marathonfile
.$ marathon run yourScript.swift
..Package(url: "[email protected]:johnsundell/xgen.git", majorVersion: 1)
to your Package.swift
file.$ swift package update
.link |
Stars: 191 |
Last commit: 3 years ago |
This release makes it possible to add auxiliary source files to a playground generated with Xgen.
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics