I've tried all of above solution but, nothing was helpFul in my scenario. And found this helpful.
ProjectName.xcodeproj
> Right Click and click on Show Packages Content
project.xcworkspace
+ xcshareddata
+ xcuserdata
, and Move To Trash. Then Close the XCode > Reopen XCode > and Rebuild
And error is disappeared.