I am studying Swift! I want create Main interface on xib. But have error \"use of unresolved identifier\".
Add code from MainViewController
This same issue happened with me too. I've only one target membership and still, I was getting “use of unresolved identifier”. I build the project and nothing changed.
I tried to uncheck and recheck the target membership and the issue was resolved.
If this doesn't resolve your issue, try building the project, check for typo error or use autocompletion and Quick Help to find recognized identifiers.