Build error - targeted OS version does not support use of thread local variables Build error - targeted OS version does not support use of thread local variables ios ios

Build error - targeted OS version does not support use of thread local variables


Changing the deployment target to 9.0 worked for me

open Xcode:

  1. select YOUR_PROJECT_NAME from target
  2. change Deployment target to 9.0 or greater under Deployment Info tab.

Hope it helps!

Edit: For visual/image reference


Your project tries to link some C++ code which makes use of a C++11 concept not supported all iOS platforms.

I think thread_local is allowed beginning with iOS 9. Try to set the deployment target to iOS 9 or later.

The offending code is in base_logging::LogMessage::Flush().


enter image description here

Please change deployment target to 9.0 as shown in the image.