cocos2d js compile ios 出错

在 cocos console 中使用 cocos compile -p ios 时 提示 :

the target platform is not specified
you can specify a target platform with -p or --platform
Available platforms:‘win32’,‘web’,‘android’]

是因为系统环境的原因吗?我想利用cocos js 编译成 ios 文件 是不是的在 mac 系统中 配置相关环境才可以 ,能不能在 windows 系统中编译ios 文件呢?