Xcode4: Alternative Way to build IPAs

后端 未结 2 1373
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-24 03:26

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 i

相关标签:
2条回答
  • 2020-12-24 04:18

    How about xcrun PackageApplication?

    • Xcode “Build and Archive” from command line

    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}"
    
    0 讨论(0)
  • 2020-12-24 04:26

    How about define several targets? That should you allow to adjust each separately for your needs.

    0 讨论(0)
提交回复
热议问题