Duplicate symbol in release build
proyb6 opened this issue · comments
proyb6 commented
Debug is working, it could be Xcode 8.0.1 having issue?
Compile Swift Module 'httpd_helloworld' (1 sources)
Linking ./.build/release/httpd-helloworld
duplicate symbol __TMRbBp in:
/Users/test/Noze.io/Samples/httpd-helloworld/.build/release/fs.build/FileSource.swift.o
/Users/test/Noze.io/Samples/httpd-helloworld/.build/release/fs.build/FileTarget.swift.o
duplicate symbol __TMRbBp in:
/Users/test/Noze.io/Samples/httpd-helloworld/.build/release/fs.build/FileSource.swift.o
/Users/test/Noze.io/Samples/httpd-helloworld/.build/release/fs.build/GCDChannelBase.swift.o
ld: 2 duplicate symbols for architecture x86_64
<unknown>:0: error: build had 1 command failures
error: exit(1): /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build-tool -f /Users/test/Noze.io/Samples/httpd-helloworld/.build/release.yaml
Helge Heß commented
This is a Swift compiler bug. A workaround is included in the develop
branch.