Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Jenkins Post Build - fail to archive IPA file
** BUILD SUCCEEDED **
Cleaning up previously generate .ipa files
Packaging IPA
Packaging myapp.app => /Users/myusername/.jenkins/jobs/myapp/workspace/DerivedData/Ad-Hoc-iphoneos/myapp-Ad-Hoc-$(/usr/libexec/PlistBuddy -c "Print CFBuildNumber" $buildPlist)nCFBuildNumber=$(($CFBuildNumber + 1))n/usr/libexec/PlistBuddy -c "Set :CFBuildNumber $CFBuildNumber" $buildPlistnCFBuildDate=$(date)n/usr/libexec/PlistBuddy -c "Set :CFBuildDate $CFBuildDate" $buildPlist
0.4.7
128.ipa
[workspace] $ /usr/bin/xcrun -sdk iphoneos PackageApplication -v /Users/myusername/.jenkins/jobs/myapp/workspace/DerivedData/Ad-Hoc-iphoneos/myapp.app -o '/Users/myusername/.jenkins/jobs/myapp/workspace/DerivedData/Ad-Hoc-iphoneos/myapp-Ad-Hoc-$(/usr/libexec/PlistBuddy -c "Print CFBuildNumber" $buildPlist)nCFBuildNumber=$(($CFBuildNumber + 1))n/usr/libexec/PlistBuddy -c "Set :CFBuildNumber $CFBuildNumber" $buildPlistnCFBuildDate=$(date)n/usr/libexec/PlistBuddy -c "Set :CFBuildDate $CFBuildDate" $buildPlist
0.4.7
128.ipa'
Packaging application: '/Users/myusername/.jenkins/jobs/myapp/workspace/DerivedData/Ad-Hoc-iphoneos/myapp.app'
Arguments: verbose=1 output=/Users/myusername/.jenkins/jobs/myapp/workspace/DerivedData/Ad-Hoc-iphoneos/myapp-Ad-Hoc-$(/usr/libexec/PlistBuddy -c "Print CFBuildNumber" $buildPlist)nCFBuildNumber=$(($CFBuildNumber + 1))n/usr/libexec/PlistBuddy -c "Set :CFBuildNumber $CFBuildNumber" $buildPlistnCFBuildDate=$(date)n/usr/libexec/PlistBuddy -c "Set :CFBuildDate $CFBuildDate" $buildPlist
0.4.7
128.ipa
Environment variables:
HOME = /Users/myusername
JENKINS_SERVER_COOKIE = 1a5b52786fc6e3e6
HUDSON_COOKIE = 5319dab7-499c-4f58-8e99-bab0f45138e1
NODE_NAME = master
com.apple.java.jvmTask = CommandLine.java
BUILD_NUMBER = 13
VERSIONER_PERL_PREFER_32_BIT = no
SSH_AUTH_SOCK = /tmp/launch-E2FcD3/Listeners
HUDSON_SERVER_COOKIE = 1a5b52786fc6e3e6
NODE_LABELS = master
WORKSPACE = /Users/myusername/.jenkins/jobs/myapp/workspace
USER = myusername
BUILD_ID = 2013-02-02_19-17-54
JENKINS_HOME = /Users/myusername/.jenkins
LOGNAME = myusername
__CF_USER_TEXT_ENCODING = 0x1F8:0:0
JAVA_ARCH = x86_64
JAVA_MAIN_CLASS_18355 = Main
PATH = /usr/bin:/bin:/usr/sbin:/sbin
EXECUTOR_NUMBER = 0
HUDSON_HOME = /Users/myusername/.jenkins
SHELL = /bin/bash
com.apple.java.jvmMode = client
TMPDIR = /var/folders/bl/hw7sxsj97vjdqvtjqn1707wh0000gr/T/
BUILD_TAG = jenkins-myapp-13
VERSIONER_PERL_VERSION = 5.12
JOB_NAME = myapp
Output directory: '/Users/myusername/.jenkins/jobs/myapp/workspace/DerivedData/Ad-Hoc-iphoneos/myapp-Ad-Hoc-$(/usr/libexec/PlistBuddy -c "Print CFBuildNumber" $buildPlist)nCFBuildNumber=$(($CFBuildNumber + 1))n/usr/libexec/PlistBuddy -c "Set :CFBuildNumber $CFBuildNumber" $buildPlistnCFBuildDate=$(date)n/usr/libexec/PlistBuddy -c "Set :CFBuildDate $CFBuildDate" $buildPlist
0.4.7
128.ipa'
Temporary Directory: '/var/folders/bl/hw7sxsj97vjdqvtjqn1707wh0000gr/T/Q_zgVrwh4a' (will NOT be deleted on exit when verbose set)
+ /bin/cp -Rp /Users/myusername/.jenkins/jobs/myapp/workspace/DerivedData/Ad-Hoc-iphoneos/myapp.app /var/folders/bl/hw7sxsj97vjdqvtjqn1707wh0000gr/T/Q_zgVrwh4a/Payload
Program /bin/cp returned 0 : []
### Checking original app
+ /usr/bin/codesign --verify -vvvv /Users/myusername/.jenkins/jobs/myapp/workspace/DerivedData/Ad-Hoc-iphoneos/myapp.app
Program /usr/bin/codesign returned 0 : [/Users/myusername/.jenkins/jobs/myapp/workspace/DerivedData/Ad-Hoc-iphoneos/myapp.app: valid on disk
/Users/myusername/.jenkins/jobs/myapp/workspace/DerivedData/Ad-Hoc-iphoneos/myapp.app: satisfies its Designated Requirement
]
Done checking the original app
+ /usr/bin/zip --symlinks --verbose --recurse-paths /Users/myusername/.jenkins/jobs/myapp/workspace/DerivedData/Ad-Hoc-iphoneos/myapp-Ad-Hoc-$(/usr/libexec/PlistBuddy -c "Print CFBuildNumber" $buildPlist)nCFBuildNumber=$(($CFBuildNumber + 1))n/usr/libexec/PlistBuddy -c "Set :CFBuildNumber $CFBuildNumber" $buildPlistnCFBuildDate=$(date)n/usr/libexec/PlistBuddy -c "Set :CFBuildDate $CFBuildDate" $buildPlist
0.4.7
128.ipa .
Program /usr/bin/zip returned 15 : [zip I/O error: No such file or directory
zip error: Could not create output file (/Users/myusername/.jenkins/jobs/myapp/workspace/DerivedData/Ad-Hoc-iphoneos/myapp-Ad-Hoc-$(/usr/libexec/PlistBuddy -c "Print CFBuildNumber" $buildPlist)nCFBuildNumber=$(($CFBuildNumber + 1))n/usr/libexec/PlistBuddy -c "Set :CFBuildNumber $CFBuildNumber" $buildPlistnCFBuildDate=$(date)n/usr/libexec/PlistBuddy -c "Set :CFBuildDate $CFBuildDate" $buildPlist
0.4.7
128.ipa)
]
error: Unable to create '/Users/myusername/.jenkins/jobs/myapp/workspace/DerivedData/Ad-Hoc-iphoneos/myapp-Ad-Hoc-$(/usr/libexec/PlistBuddy -c "Print CFBuildNumber" $buildPlist)nCFBuildNumber=$(($CFBuildNumber + 1))n/usr/libexec/PlistBuddy -c "Set :CFBuildNumber $CFBuildNumber" $buildPlistnCFBuildDate=$(date)n/usr/libexec/PlistBuddy -c "Set :CFBuildDate $CFBuildDate" $buildPlist
0.4.7
128.ipa'
Failed to build /Users/myusername/.jenkins/jobs/myapp/workspace/DerivedData/Ad-Hoc-iphoneos/myapp-Ad-Hoc-$(/usr/libexec/PlistBuddy -c "Print CFBuildNumber" $buildPlist)nCFBuildNumber=$(($CFBuildNumber + 1))n/usr/libexec/PlistBuddy -c "Set :CFBuildNumber $CFBuildNumber" $buildPlistnCFBuildDate=$(date)n/usr/libexec/PlistBuddy -c "Set :CFBuildDate $CFBuildDate" $buildPlist
0.4.7
128.ipa
Archiving artifacts
ERROR: No artifacts found that match the file pattern "build/Ad-Hoc-iphoneos/*.ipa". Configuration error?
ERROR: 'build/Ad-Hoc-iphoneos/*.ipa' doesn't match anything: even 'build' doesn't exist
Build step 'Archive the artifacts' changed build result to FAILURE
Finished: FAILURE
@heavensword

This comment has been minimized.

Copy link

heavensword commented May 20, 2014

Hi, did you solve the problem? I meet the same problem.

@awalter

This comment has been minimized.

Copy link

awalter commented Dec 6, 2017

For anyone finding this, my solution was to remove the value in SYMROOT
https://stackoverflow.com/questions/39767214/xcarchive-malformed-due-to-missing-info-plist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.