iOS is also based on NeXTSTEP(which itself is a derivative of BSD Unix). Also previous jailbreaks could gain root access along with some kind of shell. iOS, in its current form, seems to be a very locked down, sandboxed version of Unix.
So I think iOS might prove as good as macOS.