OK, I have worked out how to fix the issue..
I went to Objects\src\Settings.bundle\Root.plist and right mouse click on that file, and choose properties and unticked the 'read only' tick box. Now when I compile the app it works and no longer says it's denied access.