Please download and install from the plugins repository xmake-plugins.
$ xmake app2ipa --icon=/xxx.png /xxx/ios.app -o /xxx.ios.ipa