Isuru-Nanayakkara / Reach

A simple class to check for internet connection availability in Swift.
MIT License
456 stars 119 forks source link

Cannot invoke 'withUnsafePointer' HELP #8

Closed geennari closed 9 years ago

geennari commented 9 years ago

So I'm getting this error and I can't find a solution, help.

Cannot invoke 'withUnsafePointer' with an argument list of type '(inout sockaddrin, () -> )

let defaultRouteReachability = withUnsafePointer(&zeroAddress)
Isuru-Nanayakkara commented 9 years ago

Sorry about the late response. Unfortunately I can't replicate your issue. The IJReachability.swift file gives no errors in Swift 1.2.

geennari commented 9 years ago

No problem, I had other problems this past week. I'm updating xcode and swift now. Going to test again later and update here. Thanks in advance.

Edit: Yeah, the new Swift's update solved the problem. Thanks!