Comments (2)
@colemancda
I have some warning & errors when running swift build
.
Using Apple Swift version 4.0.3 (swiftlang-900.0.74.1 clang-900.0.39.2)
on MacOs 10.12.6
Any suggestions appreciated.
~/Downloads/hcitool/hcitool-1.1.0 ᐅ swift build
Fetching https://github.com/PureSwift/BluetoothDarwin.git
Fetching https://github.com/PureSwift/Bluetooth.git
Fetching https://github.com/MillerTechnologyPeru/Rainbow.git
Cloning https://github.com/PureSwift/BluetoothDarwin.git
Resolving https://github.com/PureSwift/BluetoothDarwin.git at 1.0.1
Cloning https://github.com/PureSwift/Bluetooth.git
Resolving https://github.com/PureSwift/Bluetooth.git at 1.8.3
Cloning https://github.com/MillerTechnologyPeru/Rainbow.git
Resolving https://github.com/MillerTechnologyPeru/Rainbow.git at 3.2.0
Compile CBluetoothDarwin dummy.c
Compile Swift Module 'Bluetooth' (79 sources)
Compile Swift Module 'BluetoothDarwin' (2 sources)
~/Downloads/hcitool/hcitool-1.1.0/.build/checkouts/BluetoothDarwin.git--1200803191445832098/Sources/BluetoothDarwin/HostController.swift:16:20: error: type 'HostController' does not conform to protocol 'BluetoothHostControllerInterface'
public final class HostController: NSObject, BluetoothHostControllerInterface {
^
~/Downloads/hcitool/hcitool-1.1.0/.build/checkouts/BluetoothDarwin.git--1200803191445832098/Sources/BluetoothDarwin/HostController.swift:101:17: note: candidate has non-matching type '<CP, EP> (CP, EP.Type, timeout: HCICommandTimeout) throws -> EP'
public func deviceRequest<CP, EP>(_ commandParameter: CP, _ eventParameterType: EP.Type, timeout: HCICommandTimeout = .default) throws -> EP where CP : HCICommandParameter, EP : HCIEventParameter {
^
~/Downloads/hcitool/hcitool-1.1.0/.build/checkouts/BluetoothDarwin.git--1200803191445832098/Sources/BluetoothDarwin/HostController.swift:122:17: note: candidate has non-matching type '<CP, Return> (CP, Return.Type, timeout: HCICommandTimeout) throws -> Return'
public func deviceRequest<CP, Return>(_ commandParameter: CP, _ commandReturnType: Return.Type, timeout: HCICommandTimeout = .default) throws -> Return where CP : HCICommandParameter, Return : HCICommandReturnParameter {
^
Bluetooth.BluetoothHostControllerInterface:16:17: note: protocol requires function 'deviceRequest(_:_:timeout:)' with type '<C, EP> (C, EP.Type, timeout: HCICommandTimeout) throws -> EP'; do you want to add a stub?
public func deviceRequest<C, EP>(_ command: C, _ eventParameterType: EP.Type, timeout: Bluetooth.HCICommandTimeout) throws -> EP where C : HCICommand, EP : HCIEventParameter
^
~/Downloads/hcitool/hcitool-1.1.0/.build/checkouts/BluetoothDarwin.git--1200803191445832098/Sources/BluetoothDarwin/HostController.swift:144:13: warning: variable 'error' was never mutated; consider changing to 'let' constant
var error: Error?
~~~ ^
let
~/Downloads/hcitool/hcitool-1.1.0/.build/checkouts/BluetoothDarwin.git--1200803191445832098/Sources/BluetoothDarwin/HostController.swift:184:13: warning: initialization of immutable value 'opcode' was never used; consider replacing with assignment to '_' or removing it
let opcode = message.pointee.dataInfo.opcode
~~~~^~~~~~
_
error: terminated(1): /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build-tool -f ~/Downloads/hcitool/hcitool-1.1.0/.build/debug.yaml main
from hcitool.
Just swift build
and copy it wherever you like. If you want it always on your command line environment add it to your path.
from hcitool.
Related Issues (20)
- Add `LE Encrypt Command`
- Add `LE Rand Command`
- Add `LE Long Term Key Request Negative Reply Command`
- Add `LE Long Term Key Request Reply Command`
- LE Start Encryption Command
- Refactor project layout
- Properly parse boolean command line arguments
- Add LE Read Supported States Command HOT 1
- Add `LE Receiver Test Command`
- Add `LE Transmitter Test Command`
- Add `LE Test End Command`
- Add `LE Add Device To Resolving List Command`
- Add `LE Remove Device From Resolving List Command`
- Add `LE Clear Resolving List Command`
- Add `LE Read Resolving List Size Command`
- Add remaining HCI Commands
- Doesn't compile (swift build) HOT 11
- Input/output error
- Assertion failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hcitool.