groue / GRMustache.swift

Flexible Mustache templates for Swift
http://mustache.github.com/
MIT License
597 stars 155 forks source link

Swift2 branch fails to compile with Xcode 7beta5 #10

Closed Orion98MC closed 9 years ago

Orion98MC commented 9 years ago

Hi Gwendal,

Here is the carthage log:

*** Building scheme "Shared MustacheiOS" in Mustache.xcworkspace
** BUILD FAILED **

The following build commands failed:
    CompileSwift normal x86_64
    CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
    CompileSwift normal i386
    CompileSwiftSources normal i386 com.apple.xcode.tools.swift.compiler
    Ld /Users/orion/Library/Developer/Xcode/DerivedData/Mustache-ajobsmoxgrhhescihiwvjygyqbpr/Build/Intermediates/Mustache.build/Release-iphonesimulator/MustacheiOS.build/Objects-normal/x86_64/Mustache normal x86_64
    Ld /Users/orion/Library/Developer/Xcode/DerivedData/Mustache-ajobsmoxgrhhescihiwvjygyqbpr/Build/Intermediates/Mustache.build/Release-iphonesimulator/MustacheiOS.build/Objects-normal/i386/Mustache normal i386
    CreateUniversalBinary /Users/orion/Library/Developer/Xcode/DerivedData/Mustache-ajobsmoxgrhhescihiwvjygyqbpr/Build/Products/Release-iphonesimulator/Mustache.framework/Mustache normal i386\ x86_64
    GenerateDSYMFile /Users/orion/Library/Developer/Xcode/DerivedData/Mustache-ajobsmoxgrhhescihiwvjygyqbpr/Build/Products/Release-iphonesimulator/Mustache.framework.dSYM /Users/orion/Library/Developer/Xcode/DerivedData/Mustache-ajobsmoxgrhhescihiwvjygyqbpr/Build/Products/Release-iphonesimulator/Mustache.framework/Mustache
(8 failures)
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Goodies/EachFilter.swift:52:45: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Goodies/EachFilter.swift:53:44: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Goodies/EachFilter.swift:54:38: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Goodies/EachFilter.swift:55:37: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Goodies/EachFilter.swift:84:45: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Goodies/EachFilter.swift:85:44: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Goodies/EachFilter.swift:86:38: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Goodies/EachFilter.swift:87:37: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:620:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:622:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:624:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:626:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:628:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:630:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:632:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:634:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:636:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:638:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:640:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:1248:56: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:1299:62: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:1350:62: error: ambiguous use of 'Box'
Assertion failed: (!failed && "Call arguments did not match up?"), function coerceCallArguments, file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-700.0.52.2/src/swift/lib/Sema/CSApply.cpp, line 4085.
<unknown>:0: error: unable to execute command: Abort trap: 6
<unknown>:0: error: swift frontend command failed due to signal (use -v to see invocation)
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Goodies/EachFilter.swift:52:45: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Goodies/EachFilter.swift:53:44: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Goodies/EachFilter.swift:54:38: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Goodies/EachFilter.swift:55:37: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Goodies/EachFilter.swift:84:45: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Goodies/EachFilter.swift:85:44: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Goodies/EachFilter.swift:86:38: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Goodies/EachFilter.swift:87:37: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:620:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:622:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:624:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:626:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:628:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:630:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:632:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:634:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:636:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:638:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:640:20: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:1248:56: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:1299:62: error: ambiguous use of 'Box'
/Users/orion/LocalDevels/Capture/Carthage/Checkouts/GRMustache.swift/Mustache/Rendering/Box.swift:1350:62: error: ambiguous use of 'Box'
Assertion failed: (!failed && "Call arguments did not match up?"), function coerceCallArguments, file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-700.0.52.2/src/swift/lib/Sema/CSApply.cpp, line 4085.
<unknown>:0: error: unable to execute command: Abort trap: 6
<unknown>:0: error: swift frontend command failed due to signal (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
fatal error: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: /Users/orion/Library/Developer/Xcode/DerivedData/Mustache-ajobsmoxgrhhescihiwvjygyqbpr/Build/Intermediates/Mustache.build/Release-iphonesimulator/MustacheiOS.build/Objects-normal/i386/Mustache (No such file or directory)
error: cannot parse the debug map for "/Users/orion/Library/Developer/Xcode/DerivedData/Mustache-ajobsmoxgrhhescihiwvjygyqbpr/Build/Products/Release-iphonesimulator/Mustache.framework/Mustache": No such file or directory
A shell task failed with exit code 65

Thanks and regards, Thierry

groue commented 9 years ago

Thanks for the notice.

I'm in vacations right now: I'll eventually take care of this when I'm back.

PaulWoodIII commented 9 years ago

@groue +1 and thanks for this project, @Orion98MC do you happen to have a quick patch?

Orion98MC commented 9 years ago

@PaulWoodIII Nope, I have not invested time in it at the moment. Sorry.

groue commented 9 years ago

Hold on, folks: I'm coming back. Expect an answer in a couple of days!

groue commented 9 years ago

I'm sorry but it looks like we have a serious bug in Xcode 7 beta 5. I could fix a couple easy issues, but there remains compiler errors that make no sense. I don't quite know what to do yet.

groue commented 9 years ago

rdar://22305249

groue commented 9 years ago

@Orion98MC @PaulWoodIII The Swift2 branch is compiling again.

I had to change the public API in order to work around a weird bug of the Swift compiler. Yet this change is unlikely to affect your code, since it touches a function that is supposed to be "advanced".

I still have to rewrite some parts of the documentation before we can consider this issue as closed, yet.

groue commented 9 years ago

Folks, the issue is now resolved.

Orion98MC commented 9 years ago

Bravo and thank you Gwendal :)

PaulWoodIII commented 9 years ago

thank you!