As the message says you can’t build the application from a network path. This also causes problems for non-native apps when using Parallels on a Mac.
The solution is to map a network drive (I use M:) and launch your project from that.
https://docs.mendix.com/howto/general/using-mendix-studio-pro-on-a-mac/#4-checking-network-drive
I hope this helps.