Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It's taken us some time to get to something approaching a solution in the comments thread, so I'm going to summarise it here:</p> <p>This type of error is caused by not successfully linking to the correct <code>libstdc++.dylib</code>, the standard C++ library. Sometimes, you forget to add it, sometimes XCode gets confused.</p> <p>First of all, make sure you are indeed linking to it in your app target's settings: it must appear in "build phases", "link binary with libraries".</p> <p>If it's there, but still failing to link, check the raw build log for any warnings that XCode might be hiding from you: e.g. about wrong architecture. This means you're linking to the wrong version of the file - e.g. linking against the simulator or OSX version instead of that in the <code>iPhoneOSx.y.sdk</code> directory. In the past, with XCode 3, this was really easy to get wrong, and the only way to fix it was to try every single different <code>libstdc++.dylib</code> that XCode offered until one worked. XCode4 normally only offers one, in addition to the names with version numbers. You should normally pick the dylib without a version number.</p> <p>Make sure all subprojects that may link against <code>libstdc++.dylib</code> use the same version in the same location.</p> <p>Check the "Library Search Paths" and "Framework Search Paths" for any paths that you didn't add yourself. I've had XCode set paths to old SDKs here, which confused the linker.</p> <p>Finally, sometimes it helps to just remove the reference to <code>libstdc++.dylib</code>, clean the project, quit and restart XCode, and re-add the reference.</p>
    singulars
    1. This table or related slice is empty.
    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