Try this example online: https://iplug2.github.io/iPlug2OOS
This is an example of how to set up an iPlug2 project to build "out of source", which might be desirable to keep all your project dependencies synchronised with version control. It is also set up for "containerized development" using VSCode and github codespaces.
Instead of using the common-mac.xcconfig and common-win.xcconfig in the iPlug2 folder, it uses copies. This means the iPlug2 submodule itself does not have to be modified.
https://github.com/iPlug2/iPlug2/wiki/Out-of-source-builds
Containerized development is documented here.