[iOS] Propagate errors properly (fixes #13)