Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins succeeds without producing IPA file

I have setup an mac mini slave on jenkins. The build process succeeds and my .app file and .dysm files etc are all created successfully.

I have Pack application and build .ipa? checked and defined a ipa filename pattern and an output directory.

When I run the build process, it actually creates the full path of my output directory, but at the end of the path, there is nothing in the final folder. No IPA. Again, the .app and other files are created successfully in the workspace build folder.

Also doesn't work if I leave the output directory blank or change it to other locations.

Jenkins succeeds with this message:

** BUILD SUCCEEDED **

Cleaning up previously generated .ipa files
Cleaning up previously generated .dSYM.zip files
Packaging IPA
Finished: SUCCESS

But alas, no IPA. Any ideas?

like image 524
Frankie Avatar asked Nov 10 '22 17:11

Frankie


1 Answers

I was not able to solve the issue directly, so I am still interested in answers from someone who might have a more direct solution using the Xcode plug in with the pack and build ipa option.

Instead, I removed this option (unchecked it) and added another build phase for execute shell script.

I then added the script from this SO answer (modified for my use) and was able to export the ipa successfully.

/usr/bin/xcrun -sdk iphoneos PackageApplication -v "${RELEASE_BUILDDIR}/${APPLICATION_NAME}.app" -o "${BUILD_HISTORY_DIR}/${APPLICATION_NAME}.ipa" --sign "${DEVELOPER_NAME}" --embed "${PROVISONING_PROFILE}"

RELEASE_BUILDDIR and BUILD_HISTORY_DIR were changed to my own paths, and -sign and -embed were not needed because i'm using the same profile as the one that created the original .app file

I did have to use mkdir -p to make the path or it wouldn't succeed for me

like image 182
Frankie Avatar answered Nov 14 '22 21:11

Frankie