If you're compiling up a project or source code for iOS development purposes and you're getting a message from the linker like:
ld: library not found for -lstdc++-static
Then follow theses two steps:
- Click "Project" -> Then "Edit Project Settings" -> Choose the "General" tab -> Select "Base SDK for All Configurations" -> and ensure its "Latest iOS" (or at least iOS of some persuasion)
- Click "Project" -> Then "Edit Active Target" -> Choose the "Build" tab -> Select "C++ Standard Library Type" -> ensure its set to "Dynamic"
This can help ensure you don't end up with those pesky linker errors and stop you from tearing your hair out in the process.