Skip to content

Commit dbc43c4

Browse files
committed
Use Swift Package Manager to build the project
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`.
1 parent 332c91a commit dbc43c4

File tree

7 files changed

+29
-358
lines changed

7 files changed

+29
-358
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ bin/
2525
*~
2626
*.dat
2727
*.dep
28+
29+
# Swift Package Manager
30+
.build

Package.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// swift-tools-version:5.3
2+
3+
import PackageDescription
4+
5+
let projectName = "bitsy-swift"
6+
7+
let package = Package(
8+
name: projectName,
9+
targets: [
10+
.target(
11+
name: projectName,
12+
path: projectName
13+
),
14+
]
15+
)

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,19 @@ I spoke about creating Bitsy and implementing it in Swift at several conferences
2222

2323
## Requirements
2424

25-
This version of BitsySwift has been tested with:
25+
This version of BitsySwift has been tested with
2626

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

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

3534
## Installation
3635

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

4139
```bash
4240
git clone https://github.com/apbendi/bitsy-swift.git

bitsy-swift.xcodeproj/project.pbxproj

Lines changed: 0 additions & 329 deletions
This file was deleted.

bitsy-swift.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 7 deletions
This file was deleted.

bitsy-swift.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)