Apparently there is no need to use any other tool, and it's also not necessary to change the process that leads to the *.app package (in other words: no need to use xcodebuild -exportArchive
).
All we have to do, is to zip that *.app package:
pushd "/build"
mkdir ./Payload
cp -R "$PATH_TO_SIGNED_APP_PACKAGE.app" ./Payload
zip -qyr MyApp.ipa ./Payload
rm -r ./Payload
popd
Note:
- Jump into the target directory, here
/build
. This ensures we don't have the full path in the zip archive later.
- Create a folder named
Payload
(important, this cannot vary)
- Copy the *.app bundle to the
Payload
folder
- Zip the folder and instead of *.zip use *.ipa as extension
- Jump back to where you came from