izqui / Taylor

A lightweight library for writing HTTP web servers with Swift
MIT License
926 stars 79 forks source link

Changes to schema not tagged to a new release. #7

Closed Danappelxx closed 9 years ago

Danappelxx commented 9 years ago

This causes both carthage and cocoapods-rome to throw errors when installing the library (at least, in my experience).

This should also be reflected in the .podspec.

izqui commented 9 years ago

I'm working on it. Can you test whether github.com/izqui/taylor-test works for you? Thanks

Danappelxx commented 9 years ago

You didn't tag a release so it didn't work. I forked that repository to danappelxx/taylor_test and tagged it at 0.1.0, then tried again. This time building the scheme appeared to work (nice!) but I still got an error:

The following build commands failed:
    CompileSwift normal x86_64 /Users/dan/Developer/etc/swiftServer/Carthage/Checkouts/taylor_test/Taylor/Response.swift
    CompileSwift normal x86_64 /Users/dan/Developer/etc/swiftServer/Carthage/Checkouts/taylor_test/Taylor/Taylor.swift
    CompileSwift normal x86_64 /Users/dan/Developer/etc/swiftServer/Carthage/Checkouts/taylor_test/Taylor/fileTypes.swift
    CompileSwift normal x86_64 /Users/dan/Developer/etc/swiftServer/Carthage/Checkouts/taylor_test/Taylor/middleware.swift
    CompileSwift normal x86_64 /Users/dan/Developer/etc/swiftServer/Carthage/Checkouts/taylor_test/Taylor/request.swift
    CompileSwift normal x86_64 /Users/dan/Developer/etc/swiftServer/Carthage/Checkouts/taylor_test/Taylor/route.swift
    CompileSwift normal x86_64 /Users/dan/Developer/etc/swiftServer/Carthage/Checkouts/taylor_test/Taylor/router.swift
    CompileSwift normal x86_64 /Users/dan/Developer/etc/swiftServer/Carthage/Checkouts/taylor_test/Taylor/stdext.swift
    CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(9 failures)

Looking that up brought me to this issue and it doesn't seem like anyone there could figure out what the problem was - the best guesses they had was that it was an issue with Xcode itself, which seems unlikely to me.

Edit: I just tried running it in Xcode and realized that you're using swift 2.0 facepalm. Seems like I can't help you test this, then - sorry about that.

Danappelxx commented 9 years ago

Took quite a while but I finally got carthage to work - ish. I tried to run it with Xcode 7 build 4 and it had a couple errors. When I fixed them and ran it I got this:

objc[16260]: Class _TtCSs18_EmptyArrayStorage is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs24_ContiguousArrayStorage1 is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs36_NativeSetStorageKeyNSEnumeratorBase is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs26_NativeSetStorageOwnerBase is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs18_CocoaSetGenerator is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs43_NativeDictionaryStorageKeyNSEnumeratorBase is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs33_NativeDictionaryStorageOwnerBase is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs25_CocoaDictionaryGenerator is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs17NonObjectiveCBase is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs17_stdlib_AtomicInt is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs19_SwiftNativeNSArray is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs24_SwiftNativeNSDictionary is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs17_SwiftNativeNSSet is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs24_SwiftNativeNSEnumerator is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs31_stdlib_ReturnAutoreleasedDummy is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs20_SwiftNativeNSString is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs19_NSContiguousString is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs40_SwiftNativeNSArrayWithContiguousStorage is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs21_SwiftDeferredNSArray is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs27_ContiguousArrayStorageBase is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs17_AnyGeneratorBase is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs15_AnySequenceBox is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs21_AnyCollectionBoxBase is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _TtCSs13VaListBuilder is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _SwiftNativeNSError is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class SwiftObject is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _SwiftNativeNSArrayBase is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _SwiftNativeNSDictionaryBase is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _SwiftNativeNSSetBase is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _SwiftNativeNSStringBase is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
objc[16260]: Class _SwiftNativeNSEnumeratorBase is implemented in both /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libswiftCore.dylib and /Applications/xcode-7-beta-4/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftCore.dylib. One of the two will be used. Which one is undefined.
LLVM ERROR: Program used external function '__TMaC6Taylor6Server' which could not be resolved!

Hopefully this helped you out!

Cheers.

izqui commented 9 years ago

Solved now! :)