Support make ipa file with ios device build.
Referctoring.