Reset the ByteArrayOutputStream so that the CFBundleVersion doesn't also include the output from the CFBundleShortVersionString function.
Added a Token Macro for XCODE_BUILD_PLUGIN
removed the accidental extra parameters in the XCodeAction
Added the xcode embedded profile code signing fix from here:https://issues.jenkins-ci.org/browse/JENKINS-14028
Archive .dSYM with "ditto" instead of "zip"

The existing "zip" command ends up embedding the full filesystem hierarchy in the zip file.
Switching to using "ditto" in this avoids the unnecessary nested folders (and preserves resource forks!).
Merge pull request #13 from edog1203/master

Archive .dSYM with "ditto" instead of "zip"
Merge pull request #15 from josephhainline/bugfix-14028
Merge remote-tracking branch 'reubenbijl/patch-1'
Fix pull request #13: the ditto arguments are inverted compared to zip
JENKINS-15916 Fail the build while creating the IPA if an invalid build directory was specified

We now fail the build if no proper build directory was found. We also fail if a unexpected IO error happened.
Display some useful information for troubleshooting purposes
Delete previously packaged debug symbols
Refactor code to test splitting of xcodebuild extra arguments
Allow to backslash spaces in Custom xcodebuild arguments. Derived from pull #7 from tkirby:escape_custom_build_args
Indentation
Expand every string variable with set environment variables - based on pull #8 from derFunk:master