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

Swapnil Jain picture Swapnil Jain · Sep 11, 2018 · Viewed 10.9k times · Source

What does the below error means? I've never seen this before.

d: targeted OS version does not support use of thread local variables in __ZN12base_logging10LogMessage5FlushEv for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

I'm using cocoapod for google cast sdk and building in Xcode 10 beta and xcode 9.4.

Answer

ishab acharya picture ishab acharya · Aug 21, 2019

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