-
Notifications
You must be signed in to change notification settings - Fork 19
Building DriveWire4 for Swift
You can run your DriveWire server via swift application. If you are using a Macintosh there is no reason not to have this service running on your mac for your Foenix. Here are some basic directions to help you build it.
Prerequisites
- xcode - https://developer.apple.com/xcode/
- drivewire4 - https://github.com/boisy/DriveWire.git
Install xcode from the App Store app.
Pull the drivewire repo from boisy:
git clone https://github.com/boisy/DriveWire.git
cd DriveWire/swift
Let try and build this.
~/code/DriveWire/swift (main) $ swift build
warning: could not determine XCTest paths: terminated(1): /usr/bin/xcrun --sdk macosx --show-sdk-platform-path output:
xcrun: error: unable to lookup item 'PlatformPath' from command line tools installation
xcrun: error: unable to lookup item 'PlatformPath' in SDK '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'
The paths are not right on this Mac. I had installed Command Line Tools to use with brew, perhaps that is an issue?
$ xcode-select -p
/Library/Developer/CommandLineTools
Yes, that is an issue. We need to move this path to the real xcode we installed...
Set Path in Xcode:
- Open Xcode, choose Settings
- Go to Locations
- Set pulldown to xcode
- quit xcode
Now path should be set right in terminal:
$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
Lets build it:
$ swift build
error: Could not find Package.swift in this directory or any of its parent directories.
Need to package init this project? Not sure but a friend helped me out with this command:
$ swift package init
Creating library package: swift
Creating Package.swift
Creating .gitignore
Creating Sources/
Creating Sources/swift/swift.swift
Creating Tests/
Creating Tests/swiftTests/
Creating Tests/swiftTests/swiftTests.swift
Now lets build:
$ swift build
Building for debugging...
[4/4] Compiling swift swift.swift
Build complete! (1.18s)
And we are done. More updates to runnig and configuring it soon.
NitrOS-9: Empowering 6809 CPUs with a modern, efficient operating system @2024