Yes Mac necessary to build ios app which uses x-codefor that like for android sndroid-studio needed.
To disable chat in config.ts file chat setting already added to enable/disable.
From <span style="color: #313b3d; font-family: Poppins; font-size: 18px;">Entire build log: </span>https://pastebin.com/uGrKgvU1 . It looks like App is build successfully but there is some error after that
Please sign released apk and run on your device.
It can be platform issue,You can also remove and add platform remove for fresh build.