Fix #482. Add iPhone platform and test.