Bouke / HAP

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

Build Failed on swift 4.2 #71

Closed manuduarte closed 5 years ago

manuduarte commented 5 years ago

Hi,

I installed swift on an odroid C2 SBC and I'm only able to install swift 4.2. Building HAP failed on building BlueSignals

.build/checkouts/BlueSignals.git-8826455067652766894/Sources/Signals/Signals.swift:111:36:

error: converting non-escaping value to 'T' may allow it to escape sigAction.__sigaction_handler = unsafeBitCast(action, to: sigaction.Unnamedunionsigaction_handler.self)

The bug seems to be fixed since BlueSIgnals 1.02 but Kitura-net still use 1.0.0.

After updated BlueSignals to the last release building HAP on my odroid C2 SBC succes

Bouke commented 5 years ago

The next version will drop Kitura and BlueSocket in favor of Nio. You can try https://github.com/Bouke/HAP/pull/68 if you want to give it a go. I’m running that PR myself on a Raspberry Pi and it has been very stable for me.

manuduarte commented 5 years ago

Hi,

I switched to the swift-nio-http branch and it build with non issue on an odroid C2 with swift 4.2.1. Linux odroid64 3.14.79-116 #1 SMP PREEMPT Tue Sep 26 01:19:06 BRT 2017 aarch64 aarch64 aarch64 GNU/Linu Swift version 4.2.1 (swift-4.2.1-RELEASE) Target: aarch64-unknown-linux-gnu

Good work, thanks.

Le 9 janv. 2019 à 07:38, Bouke Haarsma notifications@github.com a écrit :

The next version will drop Kitura and BlueSocket in favor of Nio. You can try #68 https://github.com/Bouke/HAP/pull/68 if you want to give it a go. I’m running that PR myself on a Raspberry Pi and it has been very stable for me.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Bouke/HAP/issues/71#issuecomment-452588417, or mute the thread https://github.com/notifications/unsubscribe-auth/AAqGPZV74dw6GQgk3YgNVjDmsOcSY3xoks5vBY57gaJpZM4Z2leg.