Skip to content

Commit 505bf7d

Browse files
SimplyDannyapbendi
authored andcommitted
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 640f7f5 commit 505bf7d

File tree

9 files changed

+32
-407
lines changed

9 files changed

+32
-407
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,7 @@ bin/
2424
*~
2525
*.dat
2626
*.dep
27+
28+
# Swift Package Manager
29+
.build/
30+
.swiftpm/

Package.swift

+15
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 = "bitsyspec"
6+
7+
let package = Package(
8+
name: projectName,
9+
targets: [
10+
.target(
11+
name: projectName,
12+
path: projectName
13+
),
14+
]
15+
)

README.md

+9-11
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,22 @@ implementation, even enabling a test driven approach if desired.
2525

2626
## Requirements
2727

28-
This version of BitsySpec has been tested with:
28+
This version of BitsySpec has been tested with
2929

30-
* OS X/macOS 10.14 (Mojave) or later
31-
* Xcode 11.3
32-
* Swift 5.0
30+
* macOS 12.3 (Monterey) and Ubuntu 20.04 LTS
31+
* Xcode 13.3
32+
* Swift 5.6
3333

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

3837
Swift is an implementation detail of BitsySpec. Your compiler or interpreter
39-
can be in virtually any language.
38+
can be implemented in virtually any language.
4039

4140
## Installation
4241

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

4745
```bash
4846
git clone https://github.com/apbendi/bitsyspec.git

bitsyspec.xcodeproj/project.pbxproj

-265
This file was deleted.

bitsyspec.xcodeproj/project.xcworkspace/contents.xcworkspacedata

-7
This file was deleted.

bitsyspec.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

-8
This file was deleted.

0 commit comments

Comments
 (0)