I generated an Xcode project using CMake and just got this error. Unchecking the 'Shared' box solved the problem. I found it in Product -> Scheme -> Edit schemes -> Build Target
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: