I found a pretty easy solution for this:
1- select the file causing the problem from the project navigator 2- uncheck the target membership from the file inspector 3- build the project 4- recheck the target membership for the file again.
- Select the file causing the problem from the project navigator
- Uncheck the target membership from the file inspector
- Build the project
- Recheck the target membership for the file again
theThe warning is gone! checkCheck this image for reference.
