We've updated to Xcode 8 and using the plugin we do this:

add "-archivePath "${WORKSPACE}/build/xxxxx.xcarchive" to the Custom Xcode
Build Arguments

then in a shell step following the xocde step NOTE: this uses the ad-hoc
cert, you would want your "distribution" there (I think):

#
# warning: PackageApplication is deprecated, use `xcodebuild
-exportArchive` instead.
#
# for this command we need a very simple Plist file. created here
#
#!/bin/bash

cat <<EOF > ./build/export.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "
http://www.apple.com/DTDs/PropertyList-1.0.dtd";>
<plist version="1.0">
<dict>
    <key>method</key>
    <string>ad-hoc</string>
</dict>
</plist>
EOF

xcodebuild -exportArchive -archivePath build/xxxxx.xcarchive
-exportOptionsPlist build/export.plist -exportPath .



On Mon, Apr 10, 2017 at 5:17 PM, <andy.jo...@ge.com> wrote:

> The Xcode plugin seems to have been struggling with support for a while
> now, and with the latest version of Xcode the plugin can no longer build
> IPAs for distribution.
>
> Any hope of the Xcode plugin being resurrected? Anyone have any good
> alternatives?
>
> I guess I'll need to go the shell script route, but replacing all the
> functionality of the Xcode plugin will take a while. Anyone have any good
> scripts they can share?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/b7073138-55a2-4ea6-a4fd-d1a6022ade81%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/b7073138-55a2-4ea6-a4fd-d1a6022ade81%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Dick Ginga
Build Engineer
rgi...@disruptorbeam.com

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAL3PpaU6aPNn4Rr2ai_4e3V2CGup6bspXMb%3D4hAFOOykwTwMyg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to