Linker command failed with exit code 1 - duplicate symbol __TMRbBp

georgij picture georgij · Nov 1, 2016 · Viewed 160.3k times · Source

Since I've updated to Xcode 8.1 I can't archive and also not run in Release mode (in debug mode its working). The error is that there are several "duplicate symbols for architecture arm64" and all are "duplicate symbol __TMRbBp". Whats that?

Answer

Thorax picture Thorax · Nov 3, 2016

It seems to be a bug in Swift. See discussion on Apple developers portal

It is said to be fixed in Xcode version that is about to be released. But for now there is temporary workaround:

Go to your target Build Settings and set Reflection Metadata Level flag to None