fix ios encDemo build

Fix encDemo build on iOS, which is broken by the early code change,