While building my project for different target I am getting this error:
Could not determine generated file paths for Core Data code generation: Er
The answers given above are just right, but if these do not work, then:
This solved my issue. Hope this helps.