-
Notifications
You must be signed in to change notification settings - Fork 5
Description
I installed swift, but I get an error on "swift build":
[root@marge net485Listen]# swift build
error: root manifest not found
So I tried "swift main.swift" and got:
[root@marge net485Listen]# swift main.swift
main.swift:10:8: error: no such module 'ORSSerial'
import ORSSerial
^
[root@marge net485Listen]# swift Net485.swift
Net485.swift:144:30: error: use of undeclared type 'ORSSerialPort'
convenience init(_ port: ORSSerialPort) {
^~~~~~~~~~~~~
Net485.swift:149:55: error: use of undeclared type 'ORSSerialPort'
func serialPortWasRemovedFromSystem(_ serialPort: ORSSerialPort) {
^~~~~~~~~~~~~
Net485.swift:153:35: error: use of undeclared type 'ORSSerialPort'
func serialPort(_ serialPort: ORSSerialPort, didReceive data: Data) {
^~~~~~~~~~~~~
Net485.swift:142:35: error: use of undeclared type 'ORSSerialPortDelegate'
class PacketProcessor : NSObject, ORSSerialPortDelegate {
^~~~~~~~~~~~~~~~~~~~~
Net485.swift:155:49: error: value of type 'Data' has no member 'asHexString'
print("\nBytes:(data.count) Pkt:(data.asHexString) (isOK ? "CRCOK":"CRCERR")")
~~~~ ^~~~~~~~~~~
Net485.swift:159:29: error: use of unresolved identifier 'CT485MessageCreator'
let msgOfType = CT485MessageCreator.shared.create(msg)
^~~~~~~~~~~~~~~~~~~
[root@marge net485Listen]#