Xcode4:建立IPA的替代方法 [英] Xcode4: Alternative Way to build IPAs

查看:61
本文介绍了Xcode4:建立IPA的替代方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,众所周知,使用XCode4只能在目标安装"设置为否"的情况下,使用构建和存档"来创建.IPA.
我的问题是我们的项目包含多个目标,在某些时候需要将其作为.ipas交付.每当我需要构建.ipa时,都在每个上设置跳过安装"很烦人.有人知道更好的方法吗,也许使用我在某处提到的那些可怕的配置文件"?目前,我正在使用.xarchive中的.app并以旧方式构建.IPA,并将其打包在Payload文件夹中.

So with XCode4, as is kinda well known, building .IPAs can only be created used "build and archive" if only one target has "Skip Install" set to "No".
My problem is that our project contains multiple targets, that need to be shipped as .ipas at some point. Setting "Skip Install" on each on everytime i need to build an .ipa is annoying. Does anybody know of a better way, maybe using those scary "Configuration Files" I've seen mentioned somewhere? Currently, i'm using the .app from the .xarchive and build an .IPA the old way, packaging it in a Payload folder.

推荐答案

xcrun PackageApplication怎么样?

How about xcrun PackageApplication?

从命令行执行xcrun.

Execute xcrun from command line.

PRODUCTDIR=DerivedData/foo/Build/Products/AdHoc-iphoneos
TARGET=targetA
IDENTITY="iPhone\ Distribution:\ foo"
PROVISIONING_PROFILE="/Users/foo/Library/MobileDevice/Provisioning\ Profiles/foo.mobileprovision"
OUTDIR=out
/usr/bin/xcrun -sdk iphoneos PackageApplication -v "${PRODUCTDIR}/${TARGET}.app" -o "${OUTDIR}/${TARGET}.ipa" --sign "${IDENTITY}" --embed "${PROVISONING_PROFILE}"

这篇关于Xcode4:建立IPA的替代方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆