Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual Installation #2

Closed
lfarah opened this issue Jun 25, 2016 · 1 comment
Closed

Manual Installation #2

lfarah opened this issue Jun 25, 2016 · 1 comment

Comments

@lfarah
Copy link

lfarah commented Jun 25, 2016

There are some devs who still don't know how to use SPM 馃槩
It would be cool to add the Manual installation guide in your README.md. You can take a look at my iOS Readme Template to see how you can do it.

@czechboy0
Copy link
Collaborator

I see, however this repo has dependencies which themselves might have dependencies. So manual installation would mean cloning this repository, all its dependencies in turn etc. Thus I didn't add explicit manual installation steps.

Here's SwiftPM documentation, including how to get started: https://swift.org/package-manager/

If you have Xcode 8 beta 1, you already have SwiftPM. Switch to use that new Xcode on the command line and then, in a new folder, run swift package init --type=library, which creates a skeleton of a new project. In the Package.swift file, make sure you have:

let package = Package(name: "YOUR_PACKAGE_NAME",
dependencies: [
.Package(url: "https://github.com/czechboy0/SecretSocks.git", majorVersion: 0, minor: 1)
])

and then run swift build, which pulls and compiles your project. Pulled dependencies will be in the Packages folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants