raywenderlich/sc_SwiftScripts

Name: sc_SwiftScripts

Owner: raywenderlich

Description: A couple of screencasts describing how to write scripts in Swift

Created: 2017-06-14 14:16:34.0

Updated: 2018-03-15 14:18:58.0

Pushed: 2017-06-16 08:44:16.0

Homepage: null

Size: 502

Language: C

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Swift Scripting

This repo demonstrates how you can use Swift to write commandline scripts. It forms the basis of a screencast available at https://videos.raywenderlich.com.

Feel free to say hi: @iwantmyrealname.

samx

Notes

To set the toolchain for the current session only:

port DEVELOPER_DIR=/Applications/Xcode9?1.app

To build the RandomStringGeneration directory as a dylib:

iftc -emit-library \
 RandomStringGeneration/libRandomStringGeneration.dylib \
arget x86_64-apple-macosx10.13 \
mit-module \
odule-name RandomStringGeneration \
ndomStringGeneration/*.swift

To install cocoapods rome:

m install cocoapods-rome

Then to install the dependency:

d install

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.