[Xcode] C++11 Standard Library: libc++ (LLVM C++ standard library with C++11 support)

Tadashi Shigeoka ·  Tue, September 24, 2013

When developing iOS apps, the QR code library “ZXing” wouldn’t build as-is.

It seems you need to use LLVM C++ during build, so here’s a memo of that setting.


Steps to Use LLVM C++

In the Pods project, with Pods-ZXing selected:

  • Build Settings
    • Apple LLVM 5.0 - Language - C++
      • C++ Standard Library

Change this item from Compiler Default to libc++ (LLVM C++ standard library with C++ 11 support).

Xcode-LLVM-Cpp


Reference Information

XCodeでC++11を使う方法 - 亀岡的プログラマ日記

That’s all from the Gemba.