Thanks for coming back to me.
I have just managed to get it working. I was running my projects in user/username/wapplerprojects . I did this to stop iCloud picking up and creating duplicate files.
I moved the project into Documents and it still didn't work but I get different errors. I then followed the instructions below of the "skipLibCheck".
Once I did this it works. It must be some sort of permissions issue not sure though but it's working