VMWare macos -> while building app with xcode giving error of cordova.h not present in cordoaLib/cordova/cordova.h

I installed mac os sonoma 14.4 beta in VM ware and did xcode to build ionic cordova setup.
But getting error while building application giving error as …/myapp/platforms/ios/cordovaLib/cordova/cordova.h No such directory found.

When trying from terminal giving error of : error at new subprocessError
/usr/local/lib/node_modules/ionic/node_modules/@ionic/utils-subprocess/dist/index.js:40:23