Linking ./.build/release/App
duplicate symbol __TMRbBp in:
/Users/travis/build/Swift-Yah/Web/.build/release/Fluent.build/SQL/GeneralSQLSerializer.swift.o
/Users/travis/build/Swift-Yah/Web/.build/release/SocksCore.build/TCPSocket.swift.o
ld: 1 duplicate symbol 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/travis/build/Swift-Yah/Web/.build/release.yaml
❌ Build for release failed
@caiofbpa the default Swift version is 3.0.1 on Heroku, which is more vulnerable to this duplicate symbol error.
Try adding a file named
.swift-versionin the root of your repo with the content:3.0.2, the buildpack should pick it up on the next push.@vzsg That worked like a charm, thanks!
@LoganWright I’m using the same version. And for me it’s working well.
This solved my compilation issues in XCode, still not compiling in Heroku:
http://stackoverflow.com/questions/39556483/xcode-build-perfect-failure-copenssl-not-found
Is there a problem with Fluent’s GeneralSQLSerializer? It’s a weird coincidence Tanner and I have the same issue.