becvert / cordova-plugin-zeroconf

Cordova ZeroConf Plugin
MIT License
81 stars 57 forks source link

Swift 4 error #79

Open aabitbol opened 5 years ago

aabitbol commented 5 years ago

Hi I'm getting an error in XCode when running zeroconf.watch from my cordova app. The error is in ZeroConf.swift:398:

let dict = NetService.dictionary(fromTXTRecord: txtRecordData)

The error is : Thread 1: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)

When I run the app without being plugged in and inspecting with XCode, the app simply crashes / exits.

Is anybody else getting this?

I tried with cordova v9, and v5.3.3 ZeroConf Plugin: v1.4.0 Xcode: 10.2 ionic: 4.12 I tried removing the ios platform from cordova and re-adding it. Same result.

Also tried changing the Build Target to Swift 4, 4.2 and 5 with same result.

Thanks

wang3g commented 4 years ago

Having the same issue. Any fix yet?

emcniece commented 4 years ago

Version 1.4.2 #87 has just been merged, please test & report back! 🙏