Images in build artifacts

View images generated as build artifacts on the spot: in your browser! 🖥

View images generated as build artifacts on the spot: in your browser! 🖥

You can view the images located in the root of the deploy directory ($BITRISE_DEPLOY_DIR) by clicking the eye icon. In the tutorial on the step timeout for hanging builds you can see in your browser - without downloading anything - what causes the build to hang if you create a sreenshot:

This feature might also be very useful if you run a UI test. An Xcode test step in your workflow creates screenshots, however, the screenshots come zipped, and in that case you can't view the images among the build artifacts directly but you have to download and unzip them first.

If you want to view them online, you'll need to have the images unzipped. For example, you can use this script by adding a Script step before the Deploy to Bitrise step and adding this:

# fail if any commands fails
set -e
# debug log
set -x

find $BITRISE_DEPLOY_DIR/Attachments -name *.png -exec sh -c 'mv "$(echo {})" "$BITRISE_DEPLOY_DIR/$(basename {})"' \;
Copy code

Tada! ✨

Happy coding!

No items found.
The Mobile DevOps Newsletter

Explore more topics

App Development

Learn how to optimize your mobile app deployment processes for iOS, Android, Flutter, ReactNative, and more

Bitrise & Community

Check out the latest from Bitrise and the community. Learn about the upcoming mobile events, employee spotlights, women in tech, and more

Mobile App Releases

Learn how to release faster, better apps on the App Store, Google Play Store, Huawei AppGallery, and other app stores

Mobile DevOps

Learn Mobile DevOps best practices such as DevOps for iOS, Android, and industry-specific DevOps tips for mobile engineers

Mobile Testing & Security

Learn how to optimize mobile testing and security — from automated security checks to robust mobile testing and more.

Product Updates

Check out the latest product updates from Bitrise — Build Insights updates, product news, and more.

The Mobile DevOps Newsletter

Join 1000s of your peers. Sign up to receive Mobile DevOps tips, news, and best practice guides once every two weeks.