Here's a lazy solution as compared to above answers here: my XCode project threw me this error as an iPad was connected for test. I tried deleting Deriveddata, re-starting XCode etc, but none of these helped. I ended up abandoning that project and creating the new one. The new project does not throw this error anymore.