Unable to build IOS

I’ve suddenly come across an issue building my app on IOS with XCode and I can’t figure out what has changed to cause the issue.

I was previously able to build the App with no issues however now when I try and build it fails with this error:

error: fopen(/Users/#{user}/Library/Developer/Xcode/DerivedData/App-exhubkdpgkxayrdhquijdacqgwye/Build/Intermediates.noindex/ArchiveIntermediates/App/InstallationBuildProductsLocation/Applications/App.app/Frameworks/Cordova.framework/Cordova, rb): Permission denied (13) (in target 'App' from project 'App')

I’ve tried to chmod the permissions in the Cordova.framework directory but that hasn’t done anything.

Does anyone know what this error means or where I should be looking to try and fix it?