Refine structure of iOS project to fix the issue.

Refine structure of iOS project to fix the issue due to pull request #349.