[ios] cosmetics
[osx] drop outputbuffer index and iterate over them all