Collection of must-have functional Swift tools

Overview

NOTE: This project has been merged with and superceded by Rob Rix's Result µframework.

LlamaKit

Collection of must-have functional tools. Trying to be as lightweight as possible, hopefully providing a simple foundation that more advanced systems can build on. LlamaKit is very Cocoa-focused. It is designed to work with common Cocoa paradigms, use names that are understandable to Cocoa devs, integrate with Cocoa tools like GCD, and in general strive for a low-to-modest learning curve for devs familiar with ObjC and Swift rather than Haskell and ML. There are more functionally beautiful toolkits out there (see Swiftz and Swift-Extras for some nice examples). LlamaKit intentionally is much less full-featured, and is focused only on things that come up commonly in Cocoa development. (Within those restrictions, it hopes to be based as much as possible on the lessons of other FP languages, and I welcome input from folks with deeper FP experience.)

Currently has a Result object, which is the most critical. (And in the end, it may be the only thing in the main module.) Result is mostly done except for documentation (in progress). Tests are built.

Future is in progress. It's heavily inspired by Scala's approach, though there are some small differences. I haven't decided if a Promise ISA Future or HASA Future. The Scala approach is a weird hybrid. It technically HASA Future, but in the main implementation, the Promise is its own Future, so it's kind of ISA, too. Still a work in progress there. I'm considering pulling Future out; it already makes this module too complicated (did I mention that LlamaKit wants to be really, really simple?)

LlamaKit should be considered highly experimental, pre-alpha, in development, I promise I will break you.

But the Result object is kind of nice already if you want to go ahead and use it. :D

Current Thinkings on Structure

(This is highly in progress and subject to change, like everything. Comments welcome.)

I want LlamaKit to provide several important tools to simplify functional composition. But LlamaKit doesn't intend to be a programming approach (vs. ReactiveCocoa or TypeLift which provide powerful ways to think about problems). LlamaKit is just a bag of tools. If you want to borrow my hammer, you don't have to take my circular saw, too. So LlamaKit is split up into several small frameworks so you can pick-and-choose.

LlamaKit (umbrella)
LlamaFuture Llama... (?) LlamaOps
LlamaCore

LlamaCore : The absolute basics. If it's in LlamaCore, I believe that the majority of Swift developers should be using it. I think other libraries should bulid on top of it. I think Apple should put it into stdlib. This is the stuff that I worry many developers will reinvent, and that will cause collisions between code bases. LlamaCore strives to be incredibly non-impacting. It avoids creating top-level functions that might conflict with consuming code. It declares no new opeartors. The bar is very high to be in LlamaCore. It currently contains just two types: Result (which I think Apple should put into stdlib) and Box (which only exists because of Swift compiler limitations). In the ideal LlamaKit, LlamaCore would be empty.

LlamaFuture : Concurrency primitives, most notably Future. In my current design, Future is actually stand-alone and doesn't require LlamaCore, but I think that most developers will want a failable Future<Result>> (which I am tentatively calling Task). I also expect this to hold Promise, which is a future that the caller manually completes. (This is still under very heavy consideration; I'm not sure exactly what I want yet.) LlamaFuture is tightly coupled to GCD, and is intended as a nicer interface to common Cocoa concurrency primitives, not a replacement for them.

LlamaOps : Functional composition with operators like >>= and |> is a beautiful thing. But it carries with it a lot of overhead. Not only are there cognative loads (the code is not obvious at all to the uninitiated), there are non-trivial compiler and language impacts. Operators are declared globally (specifically precedence and associativity). The Swift compiler has some serious performance problems building code with complex operator usage. And in the case of operator conflict, the resulting errors are very confusing. Widely used libraries should strongly avoid bringing in new operators implicitly. My intention is that you would always have to import LlamaOps explicitly, even if you import the umbrella LlamaKit.

LlamaKit : I do expect most of the things in LlamaKit to be useful to many, if not most, Cocoa devs. I don't want to force you to take everything, but I do want to make it easy to take everything (except operators). So hopefully I can provide an umbrella framework. I don't know if that actually works in Xcode, but we'll see.

Llama... : At this point I'm not expecting a ton more stuff, but this is where it would go. While I'm evangelizing functional programming, I want most people to use Swift to achieve that, not lots of layers on top of Swift. So for instance, I'm not particularly sold on an Either right now. In most cases I'd rather you use an enum directly. And I don't want to create a full functor-applicative-monad hierarchy (TypeLift is covering that for us). I probabaly do want somewhere to put sequence(), lift(), pure(), and flip() and maybe that could become LlamaLambda (LlamaLamb? LlamaFunc?) But I want to go slow there and see what needs arrise in real projects.

Comments
  • Convenience for making `Result` from `NSErrorPointer` API

    Convenience for making `Result` from `NSErrorPointer` API

    Cocoa API commonly uses BOOL or object type returns coupled with an NSError ** parameter where we would like to use Result instead. This provides a pair of conveniences to produce Result in those circumstances.

    This also brings in a deployment target for iOS.

    opened by robrix 18
  • Stripped-down framework

    Stripped-down framework

    I'd love for something that only contains Result and Box to start with (maaaybe treading into Either or similar later). I could incorporate that library into my libraries, and vend those types without worrying about mutual incompatibility between all the larger Swift preludes out there.

    Functions for manipulating the types could be a nice bonus, though I'd be wary of offering too complicated an API. The goal, IMO, should be for ≥ 80% of Swift library authors to use this instead of rolling their own.

    opened by jspahrsummers 9
  • Result: Support Swift 1.2

    Result: Support Swift 1.2

    Swift 1.2 makes @autoclosure an attribute of the parameter attribute, not its declaration. Make that change to support Swift 1.2 (breaking support for Swift 1.1).

    The tests do not pass with this commit: testTryTFailure fails.

    opened by modocache 8
  • Can't build with Carthage on Xcode 6.3

    Can't build with Carthage on Xcode 6.3

    See ReactiveCocoa/ReactiveCocoa#1882

    It seems that only LlamaKit-iOS scheme is failing to build. When using carthage update --platform Mac it successfully builds.

    $ xcodebuild -version
    Xcode 6.3
    Build version 6D570
    
    $ xcode-select -p
    /Applications/Xcode.app/Contents/Developer
    

    Here's the xcode-build output:

    Build settings from command line:
        SDKROOT = iphonesimulator8.3
    
    === BUILD TARGET LlamaKit-iOS OF PROJECT LlamaKit WITH CONFIGURATION Release ===
    
    Check dependencies
    
    Write auxiliary files
    write-file /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/all-product-headers.yaml
    
    CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
        cd /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit
        export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -target arm64-apple-ios8.0 -incremental -module-name LlamaKit -O -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk -g -module-cache-path /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/ModuleCache -I /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Products/Release-iphoneos -F /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Products/Release-iphoneos -parse-as-library -c -j8 /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/Result.swift -output-file-map /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/Objects-normal/arm64/LlamaKit-iOS-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/Objects-normal/arm64/LlamaKit.swiftmodule -Xcc -I/Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/LlamaKit-generated-files.hmap -Xcc -I/Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/LlamaKit-own-target-headers.hmap -Xcc -I/Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/LlamaKit-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/LlamaKit-project-headers.hmap -Xcc -I/Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Products/Release-iphoneos/include -Xcc -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Xcc -I/Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/DerivedSources/arm64 -Xcc -I/Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/DerivedSources -emit-objc-header -emit-objc-header-path /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/Objects-normal/arm64/LlamaKit-Swift.h -import-underlying-module -Xcc -ivfsoverlay -Xcc /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/unextended-module-overlay.yaml -Xcc -working-directory/Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit
    
    CompileSwift normal arm64 /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/Result.swift
        cd /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c -primary-file /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/Result.swift -target arm64-apple-ios8.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk -I /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Products/Release-iphoneos -F /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Products/Release-iphoneos -g -import-underlying-module -module-cache-path /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/ModuleCache -Xcc -I/Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/LlamaKit-generated-files.hmap -Xcc -I/Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/LlamaKit-own-target-headers.hmap -Xcc -I/Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/LlamaKit-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/LlamaKit-project-headers.hmap -Xcc -I/Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Products/Release-iphoneos/include -Xcc -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -Xcc -I/Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/DerivedSources/arm64 -Xcc -I/Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/DerivedSources -Xcc -ivfsoverlay -Xcc /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/unextended-module-overlay.yaml -Xcc -working-directory/Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit -emit-module-doc-path /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/Objects-normal/arm64/Result~partial.swiftdoc -O -parse-as-library -module-name LlamaKit -emit-module-path /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/Objects-normal/arm64/Result~partial.swiftmodule -serialize-diagnostics-path /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/Objects-normal/arm64/Result.dia -emit-dependencies-path /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/Objects-normal/arm64/Result.d -emit-reference-dependencies-path /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/Objects-normal/arm64/Result.swiftdeps -o /Users/gonzalezreal/Library/Developer/Xcode/DerivedData/LlamaKit-epamxukajgrlssanyltkvgjcbfnh/Build/Intermediates/LlamaKit.build/Release-iphoneos/LlamaKit-iOS.build/Objects-normal/arm64/Result.o
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    #include <CoreFoundation/CoreFoundation.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
    #include <sys/types.h>
             ^
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/cdefs.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
    #error Unsupported architecture
     ^
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    #include <CoreFoundation/CoreFoundation.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
    #include <sys/types.h>
             ^
    <module-includes>:3:9: note: in file included from <module-includes>:3:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:
    #include <runetype.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:
    #include <_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:
    #include <sys/_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:33:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:33:
    #include <machine/_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
    #error architecture not supported
     ^
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    #include <CoreFoundation/CoreFoundation.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
    #include <sys/types.h>
             ^
    <module-includes>:3:9: note: in file included from <module-includes>:3:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:
    #include <runetype.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:
    #include <_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:
    #include <sys/_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
    typedef __int64_t       __darwin_blkcnt_t;      /* total blocks */
            ^
    <unknown>:0: note: '__int128_t' declared here
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    #include <CoreFoundation/CoreFoundation.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
    #include <sys/types.h>
             ^
    <module-includes>:3:9: note: in file included from <module-includes>:3:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:
    #include <runetype.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:
    #include <_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:
    #include <sys/_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    typedef __int32_t       __darwin_blksize_t;     /* preferred block size */
            ^
    <unknown>:0: note: '__int128_t' declared here
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    #include <CoreFoundation/CoreFoundation.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
    #include <sys/types.h>
             ^
    <module-includes>:3:9: note: in file included from <module-includes>:3:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:
    #include <runetype.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:
    #include <_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:
    #include <sys/_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    typedef __int32_t       __darwin_dev_t;         /* dev_t */
            ^
    <unknown>:0: note: '__int128_t' declared here
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    #include <CoreFoundation/CoreFoundation.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
    #include <sys/types.h>
             ^
    <module-includes>:3:9: note: in file included from <module-includes>:3:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:
    #include <runetype.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:
    #include <_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:
    #include <sys/_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    typedef __uint32_t      __darwin_gid_t;         /* [???] process and group IDs */
            ^
    <unknown>:0: note: '__uint128_t' declared here
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    #include <CoreFoundation/CoreFoundation.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
    #include <sys/types.h>
             ^
    <module-includes>:3:9: note: in file included from <module-includes>:3:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:
    #include <runetype.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:
    #include <_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:
    #include <sys/_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    typedef __uint32_t      __darwin_id_t;          /* [XSI] pid_t, uid_t, or gid_t*/
            ^
    <unknown>:0: note: '__uint128_t' declared here
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    #include <CoreFoundation/CoreFoundation.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
    #include <sys/types.h>
             ^
    <module-includes>:3:9: note: in file included from <module-includes>:3:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:
    #include <runetype.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:
    #include <_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:
    #include <sys/_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'; did you mean '__uint128_t'?
    typedef __uint64_t      __darwin_ino64_t;       /* [???] Used for 64 bit inodes */
            ^
    <unknown>:0: note: '__uint128_t' declared here
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    #include <CoreFoundation/CoreFoundation.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
    #include <sys/types.h>
             ^
    <module-includes>:3:9: note: in file included from <module-includes>:3:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:
    #include <runetype.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:
    #include <_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:
    #include <sys/_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
    typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
            ^
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    #include <CoreFoundation/CoreFoundation.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
    #include <sys/types.h>
             ^
    <module-includes>:3:9: note: in file included from <module-includes>:3:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:
    #include <runetype.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:
    #include <_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:
    #include <sys/_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
    typedef __uint16_t      __darwin_mode_t;        /* [???] Some file attributes */
            ^
    <unknown>:0: note: '__uint128_t' declared here
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    #include <CoreFoundation/CoreFoundation.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
    #include <sys/types.h>
             ^
    <module-includes>:3:9: note: in file included from <module-includes>:3:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:
    #include <runetype.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:
    #include <_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:
    #include <sys/_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'; did you mean '__int128_t'?
    typedef __int64_t       __darwin_off_t;         /* [???] Used for file sizes */
            ^
    <unknown>:0: note: '__int128_t' declared here
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    #include <CoreFoundation/CoreFoundation.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
    #include <sys/types.h>
             ^
    <module-includes>:3:9: note: in file included from <module-includes>:3:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:
    #include <runetype.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:
    #include <_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:
    #include <sys/_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    typedef __int32_t       __darwin_pid_t;         /* [???] process and group IDs */
            ^
    <unknown>:0: note: '__int128_t' declared here
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    #include <CoreFoundation/CoreFoundation.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
    #include <sys/types.h>
             ^
    <module-includes>:3:9: note: in file included from <module-includes>:3:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:
    #include <runetype.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:
    #include <_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:
    #include <sys/_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    typedef __uint32_t      __darwin_sigset_t;      /* [???] signal set */
            ^
    <unknown>:0: note: '__uint128_t' declared here
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    #include <CoreFoundation/CoreFoundation.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
    #include <sys/types.h>
             ^
    <module-includes>:3:9: note: in file included from <module-includes>:3:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:
    #include <runetype.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:
    #include <_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:
    #include <sys/_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
    typedef __int32_t       __darwin_suseconds_t;   /* [???] microseconds */
            ^
    <unknown>:0: note: '__int128_t' declared here
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    #include <CoreFoundation/CoreFoundation.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
    #include <sys/types.h>
             ^
    <module-includes>:3:9: note: in file included from <module-includes>:3:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:
    #include <runetype.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:
    #include <_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:
    #include <sys/_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    typedef __uint32_t      __darwin_uid_t;         /* [???] user IDs */
            ^
    <unknown>:0: note: '__uint128_t' declared here
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    #include <CoreFoundation/CoreFoundation.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
    #include <sys/types.h>
             ^
    <module-includes>:3:9: note: in file included from <module-includes>:3:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:
    #include <runetype.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:
    #include <_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:27:
    #include <sys/_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    typedef __uint32_t      __darwin_useconds_t;    /* [???] microseconds */
            ^
    <unknown>:0: note: '__uint128_t' declared here
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    #include <CoreFoundation/CoreFoundation.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
    #include <sys/types.h>
             ^
    <module-includes>:3:9: note: in file included from <module-includes>:3:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:
    #include <runetype.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:42:
    #include <_types.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:42:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
    typedef __uint32_t      __darwin_wctype_t;
            ^
    <unknown>:0: note: '__uint128_t' declared here
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    #include <CoreFoundation/CoreFoundation.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
    #include <sys/types.h>
             ^
    <module-includes>:3:9: note: in file included from <module-includes>:3:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:
    #include <runetype.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:46:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:46:
    #include <sys/_types/_size_t.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types/_size_t.h:30:9: error: unknown type name '__darwin_size_t'
    typedef __darwin_size_t        size_t; 
            ^
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    #include <CoreFoundation/CoreFoundation.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: note: while building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:
    #include <sys/types.h>
             ^
    <module-includes>:3:9: note: in file included from <module-includes>:3:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/ctype.h:70:
    #include <runetype.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:47:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/runetype.h:47:
    #include <sys/_types/_ct_rune_t.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/sys/_types/_ct_rune_t.h:31:9: error: unknown type name '__darwin_ct_rune_t'; did you mean '__darwin_wctrans_t'?
    typedef __darwin_ct_rune_t ct_rune_t;
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/_types.h:40:14: note: '__darwin_wctrans_t' declared here
    typedef int             __darwin_wctrans_t;
                            ^
    <unknown>:0: error: too many errors emitted, stopping now
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: note: while building module 'CoreFoundation' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:
    #include <CoreFoundation/CoreFoundation.h>
             ^
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:11:10: error: could not build module 'Darwin'
    #include <sys/types.h>
             ^
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: error: could not build module 'CoreFoundation'
    #include <CoreFoundation/CoreFoundation.h>
             ^
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:6:9: note: while building module 'ObjectiveC' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:6:
    #import <objc/NSObject.h>
            ^
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/objc/message.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/objc/message.h:29:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/objc/message.h:29:
    #include <objc/objc.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/objc/objc.h:31:10: error: could not build module 'Darwin'
    #include <sys/types.h>      // for __DARWIN_NULL
             ^
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:6:9: note: while building module 'ObjectiveC' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:6:
    #import <objc/NSObject.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/objc/objc-load.h:33:10: note: while building module 'MachO' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/objc/objc-load.h:33:
    #include <mach-o/loader.h>
             ^
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/mach-o/arch.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/mach-o/arch.h:32:10: error: could not build module 'Darwin'
    #include <stdint.h>
             ^
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDateIntervalFormatter.h:6:10: note: while building module 'Dispatch' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDateIntervalFormatter.h:6:
    #include <dispatch/dispatch.h>
             ^
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/dispatch/dispatch.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/dispatch/dispatch.h:25:10: error: could not build module 'Darwin'
    #include <Availability.h>
             ^
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDateIntervalFormatter.h:6:10: note: while building module 'Dispatch' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDateIntervalFormatter.h:6:
    #include <dispatch/dispatch.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/dispatch/dispatch.h:48:10: note: while building module 'os' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/dispatch/dispatch.h:48:
    #include <os/object.h>
             ^
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/os/base.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/usr/include/os/base.h:24:10: error: could not build module 'Darwin'
    #include <sys/cdefs.h>
             ^
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: note: while building module 'Foundation' imported from /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:
    #import <Foundation/Foundation.h>
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9:9: note: while building module 'Security' imported from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9:
    #import <Security/Security.h>
            ^
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Security.framework/Headers/Security.h"
            ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Security.framework/Headers/Security.h:24:10: note: in file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Security.framework/Headers/Security.h:24:
    #include <Security/SecBase.h>
             ^
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:32:10: error: could not build module 'Darwin'
    #include <Availability.h>
             ^
    <module-includes>:1:9: note: in file included from <module-includes>:1:
    #import "/Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h"
            ^
    /Users/gonzalezreal/Documents/developer/projects/TMDb/Carthage/Checkouts/LlamaKit/LlamaKit/LlamaKit.h:9:9: error: could not build module 'Foundation'
    #import <Foundation/Foundation.h>
            ^
    <unknown>:0: error: could not build Objective-C module 'LlamaKit'
    

    Thanks :smile:

    opened by gonzalezreal 7
  • Rename project

    Rename project

    This is not really an issue but more of a suggestion. I think the name and the README are not clear as to what this library currently does. Result has become a must-have for all my new projects, and it'd be nice if the library was called just that or something relatively close with an updated README and documentation.

    Feel free to close at your own discretion.

    opened by kaishin 5
  • Add definitions for == and !=

    Add definitions for == and !=

    For Result types, equality should be defined based on the equality of the contained types. This adds the logic for == (flipped for !=) to allow you to compare two instances of Result.

    I saw a mention from @rnapier on the mailing list about removing this operator implementation, but I don't fully understand why. I think this is a totally reasonable thing to have, and I was actually a little surprised when it didn't exist.

    opened by gfontenot 5
  • Remove hardcoded DevelopmentTeam from project settings

    Remove hardcoded DevelopmentTeam from project settings

    I think this line should not be there in LlamaKit.xcodeproj/project.pbxproj:

    DevelopmentTeam = GYS967H4MT;
    

    At least it prevents me from building LlamaKit for iOS device on my SDK. (LlamaKit comes currently as a part of the swift-development branch of ReactiveCocoa).

    Xcode offers to replace it with my own DevelopmentTeam but just manually removing that line seems to work as well. (I assume it then defaults to the settings of my iOS app bundle.)

    opened by pyrtsa 4
  • Push new podspec versions to CocoaPods

    Push new podspec versions to CocoaPods

    @ashfurrow is probably the person to bug about this, but the latest version of LlamaKit that's on CoocaPods is v0.1.1. Any chance of gettting the latest versions up on there, specifically v0.5.0 and #32's v0.6.0?

    opened by modocache 3
  • Tag v0.6.0 to demarcate Swift 1.2 support

    Tag v0.6.0 to demarcate Swift 1.2 support

    Following 7569c59f49b0d4033a06409745a44f8566189e98, LlamaKit no longer builds on Swift 1.1 or prior. How about cutting a tag for Swift 1.2-compatible LlamaKit?

    opened by modocache 3
  • Merge master with parameterize branch.

    Merge master with parameterize branch.

    Judging by the discussion in issue #10 the consensus seems to be something like this. I also made some more changes on the master branch by moving everything concerning NSError to its own file, but I don't think that is as relevant for a project geared towards Cocoa and NSError.

    opened by kareman 3
  • Result.swift

    Result.swift

    What's the advantage of using Box instead of using auto closure for your Result type:

    public enum Response { case Success(@autoclosure() -> T) case Failure(NSError) }

    opened by devedup 3
  • Carthage warning issue

    Carthage warning issue

    Carthage/Checkouts/LlamaKit/LlamaKit/Result.swift:57:20: warning: closure parameter prior to parameters with default arguments will not be treated as a trailing closure

    opened by c3stream 0
  • Provide binary frameworks

    Provide binary frameworks

    [email protected] added the ability to automatically download binary frameworks from GitHub releases. This feature greatly reduces the time required to bootstrap a project. Please provide binary frameworks for the latest and upcoming releases.

    Thanks!

    opened by felixvisee 0
  • Add `catch`

    Add `catch`

    To quickly recap the previous discussion:

    I asked if there should be a catch or recoverWith method along the lines of:

    extension Result {
        func catch(transform: NSError -> Result<T>) -> Result<T> {
            switch self {
                case Success(let value): return .Success(value)
                case Failure(let error): return transform(error)
            }
        }
    }
    

    @rnapier responded thusly:

    catch looks very similar to recoverWith() that I've been playing with based on recover() from Scala Futures.

    The problem I ran into it in this formulation is that it can be be overly aggressive. Consider:

       let x = something()
         .flatMap(more)
         .flatMap(commonFailer)
         .catch(recoveryFunc)
         .flatMap(evenMore)
    

    The problem I kept bumping into is that I meant recoveryFunc to apply to commonFailer, but it necessarily applies to everything up to that point. I found that injected surprising bugs because errors from something() were ignored in a spooky-action-at-a-distance kind of way.

    I've been exploring a tighter binding like this:

    let x = something()
      .flatMap(more)
      .recoverWith(recoveryFunc, commonFailer)
      .flatMap(evenMore)
    

    As a real-world example from my code (in this iteration I was calling it rescueWith, which might also be a fine name):

      return apiResultP(url) { $0
        |> asJSON          >>== asJSONDictionary
        >>== forKey("query") >>== asJSONDictionary
        >>== forKey("pages") >>== asJSONDictionary
        >>== forKey(toString(page.identifier)) >>== asJSONDictionary
        >>== rescueWith([], { forKey("images") >>== asJSONArray })
    
        >>== forEach { $0 |> asJSONDictionary
                       >>== forKey("title") >>== asString
                       <**> { (page, $0) }
                     }
      }
    }
    

    My old catch-style code quietly ignored network errors, which I didn't realize was happening until I built more negative tests.

    opened by robb 2
  • Purpose of ErrorType?

    Purpose of ErrorType?

    I'm a bit confused as to the purpose of using ErrorType as the type for the Error case of Result. Doesn't this mean that if I wanted to pull an NSError out of the enum, I would have to cast it to an NSError to do anything with it? It seems like Result should only support errors of type NSError, and an implementation of Either should be added to this library for the case where both the left/right values are parameterized (like when you want to use something other than NSError).

    opened by indragiek 29
Releases(v0.6.0)
  • v0.6.0(Feb 18, 2015)

  • v0.5.0(Jan 6, 2015)

    Result is no longer restricted to NSError. You can create a Result parameterized to any error type you like. This makes Result equivalent to Either with more obvious naming conventions (and the success case comes first in the type list).

    This release is likely close to feature-complete on Result, and may eventually be considered the "production" version once others have played with it for a while.

    Source code(tar.gz)
    Source code(zip)
  • 0.2.0(Nov 22, 2014)

    Errors in this release need not be of type NSError. They can be of any type you like (as long as the type is marked as conforming to ErrorType).

    This is mostly backward compatible with the NSError-only 0.1.0.

    You should expect ErrorType to go away in 0.3.0. We will likely either go back to requiring NSError or move to a fully-parameterized error type (Result<T,E>). This solution has turned out to possibly be the worst of both worlds.

    This release also adds a PodSpec. Be very careful building important things on this. That leading 0 in the version is not kidding around. But I do expect things to settle down soon.

    This release bumps us to iOS 8.0 so that libraries work correctly.

    Source code(tar.gz)
    Source code(zip)
  • v0.1.0(Sep 29, 2014)

    First-pass version of Result. There may still be some changes in this (considering moving to an Error protocol rather than just NSError). The directory structure is still subject to change.

    Source code(tar.gz)
    Source code(zip)
Swift µframework of simple functional programming tools

Prelude This is a Swift µframework providing a number of simple functions that I use in many of my other frameworks. Rather than continue to reimpleme

Rob Rix 405 Jun 29, 2022
Functional chaining and promises in Swift

Forbind Functional chaining and promises in Swift Note: still in an experimental state. Everything could change. I would love some feedback on this. W

Ulrik Flænø Damm 45 Sep 1, 2022
A functional utility belt implemented as Swift 2.0 protocol extensions.

Oriole [![CI Status](http://img.shields.io/travis/Tyler Thompson/Oriole.svg?style=flat)](https://travis-ci.org/Tyler Thompson/Oriole) Oriole is a set

Tyler Paul Thompson 11 Aug 10, 2019
Functional programming in Swift

Swiftz Swiftz is a Swift library for functional programming. It defines functional data structures, functions, idioms, and extensions that augment the

TypeLift 3.3k Dec 25, 2022
Functional JSON parsing library for Swift

Argo Argo is a library that lets you extract models from JSON or similar structures in a way that's concise, type-safe, and easy to extend. Using Argo

thoughtbot, inc. 3.5k Jan 7, 2023
🏹 Bow is a cross-platform library for Typed Functional Programming in Swift

Bow is a cross-platform library for Typed Functional Programming in Swift. Documentation All documentation and API reference is published in our websi

Bow 613 Dec 20, 2022
Functional programming in Swift

Swiftz Swiftz is a Swift library for functional programming. It defines functional data structures, functions, idioms, and extensions that augment the

TypeLift 3.3k Jan 6, 2023
Functional data types and functions for any project

Swiftx Swiftx is a Swift library containing functional abstractions and extensions to the Swift Standard Library. Swiftx is a smaller and simpler way

TypeLift 219 Aug 30, 2022
Swift µframework with extensions for the Optional Type

OptionalExtensions Why? Swift's Optional is pretty awesome, but it can always get better. This repository is an humble attempt to add some utility met

Rui Peres 183 Dec 15, 2022
Infix operators for monadic functions in Swift

Indecipherable symbols that some people claim have actual meaning. Please see the documentation for installation instructions. What's included? Import

thoughtbot, inc. 825 Dec 7, 2022
A set of Swift extensions for standard types and classes.

ExSwift Set of Swift extensions for standard types and classes. Installation Because of Xcode errors it's not possible to integrate this project with

Pierluigi D'Andrea 3.4k Dec 27, 2022
A low-maintenance, simple framework for a snapshot testing, which takes into account a snapshot difference factor (must have if you're using CI).

CornSnapshotTesting A low-maintenance, simple framework for a snapshot testing, which takes into account a snapshot difference factor (must have if yo

Rita 2 Nov 29, 2021
Brain training Rock, Paper, Scissors game where user must purposefully win or lose against computer

RockPaperScissors This is a Rock, Paper, Scissors game that includes an addition

Bogdan Alex Ciobanu 0 Dec 18, 2021
Functional programming tools and experiments in Swift.

Funky The documentation (courtesy of realm/jazzy) is available here: https://brynbellomy.github.io/Funky Master branch is currently compatible with: S

Bryn Bellomy 12 May 2, 2017
Swift µframework of simple functional programming tools

Prelude This is a Swift µframework providing a number of simple functions that I use in many of my other frameworks. Rather than continue to reimpleme

Rob Rix 405 Jun 29, 2022
Keep It Functional - An iOS Functional Testing Framework

IMPORTANT! Even though KIF is used to test your UI, you need to add it to your Unit Test target, not your UI Test target. The magic of KIF is that it

KIF Framework 6.2k Dec 29, 2022
adb-tools-mac is a macOS menu bar app written in SwiftUI for common adb tools.

adb-tools-mac is a macOS menu bar app written in SwiftUI for common adb tools.

Naman Dwivedi 930 Jan 2, 2023
🎈 Curated collection of advanced animations that I have developed using (Swift UI for iOS) and (React Native for iOS/Android). Source code is intended to be reused by myself for future projects.

?? Curated collection of advanced animations that I have developed using (Swift UI for iOS) and (React Native for iOS/Android). Source code is intended to be reused by myself for future projects.

Artem Moshnin 5 Apr 3, 2022
A handy collection of Swift method and Tools to build project faster and more efficient.

SwifterKnife is a collection of Swift extension method and some tools that often use in develop project, with them you might build project faster and

李阳 4 Dec 29, 2022
A collection of tools for debugging, diffing, and testing your application's data structures.

Custom Dump A collection of tools for debugging, diffing, and testing your application's data structures. Motivation customDump diff XCTAssertNoDiffer

Point-Free 631 Jan 3, 2023