在编译好的.app文件目录中的info.plist中,加一个名为SignerIdentity的key字段,内容为Apple iPhone OS Application Signing。
然后将.app拖到itunes就生成ipa了.