I encountered the same error and tried many solutions, but none worked. However, I finally found a solution from the Apple forum that worked for me.
Please Follow below steps,
Enjoy !! Happy Coding ...