Bouke / HAP

Swift implementation of the Homekit Accessory Protocol
https://boukehaarsma.nl/HAP/
MIT License
364 stars 50 forks source link

Linux error since last commit #70

Closed manuduarte closed 5 years ago

manuduarte commented 5 years ago

Hi,

Since the last issue there is some compiling issues.

1st issue (Solved)

./HAP/.build/checkouts/Cdns_sd.git--79080462313159224/shim.h:1:10: error: 'dns_sd.h' file not found

include

     ^

./HAP/.build/checkouts/NetService.git-3665721673043840872/Sources/NetService/NetService.swift:13:8: error: could not build C module 'Cdns_sd' import Cdns_sd

I solved that issue with sudo apt-get install libavahi-compat-libdnssd-dev

Second issue:

./HAP/Sources/HAP/Server/Server.swift:67:41: error: cannot convert value of type '[String : String]' to expected argument type 'Data?' service.setTXTRecord(device.config)

Same issue on both x86 and arm platform

Bouke commented 5 years ago

With the release of NetService 0.5, these issues have been introduced. For your first issue, I've updated the readme: 6565741f9be8fd5cec969fee070621083a2f56bd. And for the second issue, I've updated the code: 58f1344e14fc37d7de2e6d03badf79b1e0424902. Thank you!

Also note that for a better Linux/arm story, check out PR #68.