railsware / Sleipnir

BDD-style framework for Swift
http://railsware.com/blog/2014/07/04/bdd-style-testing-in-swift-with-sleipnir
MIT License
844 stars 48 forks source link

Can't run Sample #17

Open michaelgwelch opened 9 years ago

michaelgwelch commented 9 years ago

Can someone check to make sure they can still run the Sample project?

I've had no luck writing command line projects that reference a Swift framework and was told this is not supported in currently released XCode 6.1.

I see the same issue with the Sleipnir project. Do others have the same problem? I see a runtime dyld error.

dyld: Library not loaded: @rpath/libswiftCore.dylib
michaelgwelch commented 9 years ago

Nor can I build the Spec target:

(null): Linker command failed with exit code 1 (use -v to see invocation)

Ld /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Products/Debug/Spec normal x86_64
    cd /Users/mgwelch/Documents/Projects/thirdparty/swiftz/sleipnir/Sleipnir
    export MACOSX_DEPLOYMENT_TARGET=10.9
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -L/Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Products/Debug -F/Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Products/Debug -filelist /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Intermediates/Sleipnir.build/Debug/Spec.build/Objects-normal/x86_64/Spec.LinkFileList -mmacosx-version-min=10.9 -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx -Xlinker -force_load_swift_libs -lswiftRuntime -lc++ -framework Foundation -lcurses -Xlinker -force_load -Xlinker /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_macosx.a -Xlinker -add_ast_path -Xlinker /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Intermediates/Sleipnir.build/Debug/Spec.build/Objects-normal/x86_64/Sleipnir.swiftmodule -fobjc-arc -fobjc-link-runtime -Xlinker -dependency_info -Xlinker /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Intermediates/Sleipnir.build/Debug/Spec.build/Objects-normal/x86_64/Spec_dependency_info.dat -o /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Products/Debug/Spec

duplicate symbol __TTWCSo5NSSetSs12SequenceTypeFS0_8generateUS0__USs13GeneratorType___fRQPS0_FT_QS2_9Generator in:
    /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Intermediates/Sleipnir.build/Debug/Spec.build/Objects-normal/x86_64/SleipnirContainer.o
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx/libswiftFoundation.a(Foundation.o)
duplicate symbol __TTWCSo5NSSetSs12SequenceTypeFS0_oi2tgUS0__USs13GeneratorType___fMQPS0_FTS2_TVSs19_UnderestimateCountT___Si in:
    /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Intermediates/Sleipnir.build/Debug/Spec.build/Objects-normal/x86_64/SleipnirContainer.o
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx/libswiftFoundation.a(Foundation.o)
duplicate symbol __TTWCSo5NSSetSs12SequenceTypeFS0_oi2tgUS0__USs13GeneratorType___fMQPS0_FTS2_TVSs24_CopyToNativeArrayBufferT___GVSs22_ContiguousArrayBufferQQS2_9Generator7Element_ in:
    /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Intermediates/Sleipnir.build/Debug/Spec.build/Objects-normal/x86_64/SleipnirContainer.o
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx/libswiftFoundation.a(Foundation.o)
duplicate symbol __TTWCSo5NSSetSs12SequenceTypeFS0_oi2tgUS0__USs13GeneratorType___fMQPS0_U__FTS2_TVSs18_PreprocessingPassFS2_Q___GSqQ__ in:
    /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Intermediates/Sleipnir.build/Debug/Spec.build/Objects-normal/x86_64/SleipnirContainer.o
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx/libswiftFoundation.a(Foundation.o)
duplicate symbol __TTWCSo5NSSetSs14_Sequence_TypeFS0_8generateUS0__USs13GeneratorType___fRQPS0_FT_QS2_9Generator in:
    /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Intermediates/Sleipnir.build/Debug/Spec.build/Objects-normal/x86_64/SleipnirContainer.o
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx/libswiftFoundation.a(Foundation.o)
duplicate symbol __TTWCSo7NSArraySs12SequenceTypeFS0_8generateUS0__USs13GeneratorType___fRQPS0_FT_QS2_9Generator in:
    /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Intermediates/Sleipnir.build/Debug/Spec.build/Objects-normal/x86_64/SleipnirContainer.o
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx/libswiftFoundation.a(Foundation.o)
duplicate symbol __TTWCSo7NSArraySs12SequenceTypeFS0_oi2tgUS0__USs13GeneratorType___fMQPS0_FTS2_TVSs19_UnderestimateCountT___Si in:
    /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Intermediates/Sleipnir.build/Debug/Spec.build/Objects-normal/x86_64/SleipnirContainer.o
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx/libswiftFoundation.a(Foundation.o)
duplicate symbol __TTWCSo7NSArraySs12SequenceTypeFS0_oi2tgUS0__USs13GeneratorType___fMQPS0_FTS2_TVSs24_CopyToNativeArrayBufferT___GVSs22_ContiguousArrayBufferQQS2_9Generator7Element_ in:
    /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Intermediates/Sleipnir.build/Debug/Spec.build/Objects-normal/x86_64/SleipnirContainer.o
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx/libswiftFoundation.a(Foundation.o)
duplicate symbol __TTWCSo7NSArraySs12SequenceTypeFS0_oi2tgUS0__USs13GeneratorType___fMQPS0_U__FTS2_TVSs18_PreprocessingPassFS2_Q___GSqQ__ in:
    /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Intermediates/Sleipnir.build/Debug/Spec.build/Objects-normal/x86_64/SleipnirContainer.o
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx/libswiftFoundation.a(Foundation.o)
duplicate symbol __TTWCSo7NSArraySs14_Sequence_TypeFS0_8generateUS0__USs13GeneratorType___fRQPS0_FT_QS2_9Generator in:
    /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Intermediates/Sleipnir.build/Debug/Spec.build/Objects-normal/x86_64/SleipnirContainer.o
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx/libswiftFoundation.a(Foundation.o)
duplicate symbol __TWPCSo5NSSetSs12SequenceType in:
    /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Intermediates/Sleipnir.build/Debug/Spec.build/Objects-normal/x86_64/SleipnirContainer.o
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx/libswiftFoundation.a(Foundation.o)
duplicate symbol __TWPCSo5NSSetSs13_SequenceType in:
    /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Intermediates/Sleipnir.build/Debug/Spec.build/Objects-normal/x86_64/SleipnirContainer.o
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx/libswiftFoundation.a(Foundation.o)
duplicate symbol __TWPCSo5NSSetSs14_Sequence_Type in:
    /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Intermediates/Sleipnir.build/Debug/Spec.build/Objects-normal/x86_64/SleipnirContainer.o
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx/libswiftFoundation.a(Foundation.o)
duplicate symbol __TWPCSo7NSArraySs12SequenceType in:
    /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Intermediates/Sleipnir.build/Debug/Spec.build/Objects-normal/x86_64/SleipnirContainer.o
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx/libswiftFoundation.a(Foundation.o)
duplicate symbol __TWPCSo7NSArraySs13_SequenceType in:
    /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Intermediates/Sleipnir.build/Debug/Spec.build/Objects-normal/x86_64/SleipnirContainer.o
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx/libswiftFoundation.a(Foundation.o)
duplicate symbol __TWPCSo7NSArraySs14_Sequence_Type in:
    /Users/mgwelch/Library/Developer/Xcode/DerivedData/Sleipnir-evlbznmvnkkgdmgdqfqrpggmjhme/Build/Intermediates/Sleipnir.build/Debug/Spec.build/Objects-normal/x86_64/SleipnirContainer.o
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift_static/macosx/libswiftFoundation.a(Foundation.o)
ld: 16 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
michaelgwelch commented 9 years ago

Knock knock. Anybody home?

atermenji commented 9 years ago

I see the same error when I try to run sample. Have not found a solution yet, will investigate

michaelgwelch commented 9 years ago

Thanks @atermenji

michaelgwelch commented 9 years ago

According to https://github.com/typelift/swiftz/issues/114#issuecomment-62075011 it's not possible to bundle a framework with a command line tool in current version of XCode (for Swift). I'm assuming this was working in XCode 6.0 or beta versions.

atermenji commented 9 years ago

yes, it was working, I hope it would get back to working in the next version