Build directory not found when cloning entire ionic project from remote


I am pushing my entire ionic directory to a remote git hosting site, including package modules and all of the files generated by ionic build ios. Then I try to clone what I’ve pushed to a different location locally and build the project in xcode. When I do that I get the following errors:

I do not get the same errors when I ‘cp’ the local directory to a different location in my local filesystem, it works just fine.

There are multiple .gitignore files all around the project that exclude stuff. Also, some paths are more or less hardcoded.

Is there a reason you don’t just commit the standard stuff, then do npm i after checkout to get your node_modules filled and then just create the platforms and build from that?