Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The issue you have encountered seems to be C++ standard library related. </p> <p>Actually, whenever you see linker failures in relationship with standard library objects (e.g. <code>std::string</code>), you should check the project settings on all linked libraries and the app-project itself. They usually need to match!</p> <p>The original ScanTest (which builds ZXingWidget as a subproject) uses the following settings and those need to match your App build-settings if you use the library as is.</p> <p>For making sure, I created a brand-new project using Xcode 4.5. That project uses ZXingWidget as a prebuilt library but not as a subproject - I dont like subprojects for stuff that is not my own - though this specialty wont influence the results.</p> <p>The important setting is <strong><em>C++ Standard Library</em></strong> - make sure that is set towards <strong><em>Compiler Default</em></strong></p> <p><img src="https://i.stack.imgur.com/jxPvG.png" alt="enter image description here"> </p> <hr> <p><em>Little clarification</em></p> <p>Actually, you do not need to use <strong><em>C++ Standard Library</em></strong>, you may as well use <strong><em>LLVM C++ standard library with C++11 support</em></strong>. <strong>But</strong> you will have to use that exact same library in all projects, sub-projects and libraries that link with your project. So if you insist on using the more recent version of that library (C++11 support), then you will have to build the ZXing library with those settings as well.</p> <hr> <p>Last but not least, make sure your <strong><em>Architectures</em></strong> and <strong><em>Valid Architecture</em></strong> settings are matching over all projects and sub projects (fixing the common <code>armv7s</code> linker issue). </p> <p>First, make sure your <strong><em>Architectures</em></strong> setting is set towards <code>armv7</code> <code>armv7s</code> within all projects. Then also edit the project settings of all projects towards <strong><em>Valid Architecture</em></strong> <code>armv7s</code> <code>armv7</code>. </p> <p><img src="https://i.stack.imgur.com/ASeo8.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload