simulator runtime is not available.
Unable to open liblaunch_sim.dylib Try reinstalling Xcode or the simulator runtime.
Solution:
// Based on https://gist.github.com/ColinEberhardt/05fafaca143ac78dbe09 | |
// Make handler as closure type | |
protocol Disposable { | |
func dispose() | |
} | |
class Event<T> { | |
typealias Handler = (data: T) -> Void | |
private var handlers = [HandlerWrapper<T>]() |