Building on Cthutu’s answer, to add libc++.dylib to your project:
- Select your project (the blue file) in your project navigator
(Command 1 if it’s hidden) - Select your target
- Go to Build Phases
- Expand “Link Binary With Libraries”
- Click the “+”
- Type libc++.dylib in the search bar.
- Select the libc++.dylib file and press “Add”