CaramelForSwift / Caramel

A portable I/O framework for Swift
282 stars 20 forks source link

Cannot build on OS X #8

Open tengyifei opened 8 years ago

tengyifei commented 8 years ago

It's impossible to install libuv into /usr due to the stringent system protection policies imposed by OS X. swift build fails with errors such as:

Cloning https://github.com/CaramelForSwift/CUv.git
Using version 1.0.0 of package CUv
Compiling Swift Module 'Caramel' (22 sources)
/Users/yifei/dev/Caramel/Sources/EventLoop.swift:20:44: error: use of undeclared type 'uv_loop_t'
        internal var uvLoop: UnsafeMutablePointer<uv_loop_t> = {
                                                  ^~~~~~~~~