If you have any sub-projects under the main project, one of the reasons this may happen is one or more sub-projects have their “Deployment Target” higher than the main project.
For example, if your main project has its deployment target 8.0, set the deployment targets of all the sub-projects to 8.0. I think this will fix your problem. Let me know in case it does. Cheers.