you are opened YourAppName.xcodeproj file in your xcode thats why this error begins close the xcode then open xcode and click on open new project and select YourAppName.xcworkspace file and then first clean the build folder then click on product and then build. and here your problem solved