Skip to content

Commit

Permalink
Use Swift Package Manager to build the project
Browse files Browse the repository at this point in the history
Xcode is no longer a requirement. This allows Linux/Windows users to build the project, too.
An Xcode project can still be generated running `swift package generate-xcodeproj`.
  • Loading branch information
SimplyDanny committed Oct 10, 2021
1 parent 332c91a commit dbc43c4
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 358 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ bin/
*~
*.dat
*.dep

# Swift Package Manager
.build
15 changes: 15 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// swift-tools-version:5.3

import PackageDescription

let projectName = "bitsy-swift"

let package = Package(
name: projectName,
targets: [
.target(
name: projectName,
path: projectName
),
]
)
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,19 @@ I spoke about creating Bitsy and implementing it in Swift at several conferences

## Requirements

This version of BitsySwift has been tested with:
This version of BitsySwift has been tested with

* macOS 10.14 (Mojave) or later
* [Xcode](https://itunes.apple.com/us/app/xcode/id497799835?mt=12) 11.3
* Swift 5.0
* macOS 11.6 (Big Sur) and Ubuntu 20.04 LTS
* Xcode 13.0
* Swift 5.5

Linux support is currently limited by
[Swift Foundation](https://github.com/apple/swift-corelibs-foundation) but
should come eventually.
although basically only a Swift toolchain is required to build the project. Thus,
it may also run perfectly fine on Windows.

## Installation

To 'install' the compiler, simply clone and build the repository. You must have
[Xcode](https://itunes.apple.com/us/app/xcode/id497799835?mt=12)
and the `xcodebuild` utility installed.
To 'install' BitsySwift, simply clone and build the repository. You must have the
[Swift compiler](https://swift.org/download/#releases) available in your `PATH`:

```bash
git clone https://github.com/apbendi/bitsy-swift.git
Expand Down
329 changes: 0 additions & 329 deletions bitsy-swift.xcodeproj/project.pbxproj

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit dbc43c4

Please sign in to comment.