1

similar question to this thread but that thread is very outdated (Xocde4)

on Xcode13. How do you see logs of a pre and post build action? I am running a script as part of the pre-build action but logs can't be found anymore. enter image description here

I am not even sure its kicked off - how do I check pre build action its actually invoked?

OLIVER.KOO
  • 5,654
  • 3
  • 30
  • 62

1 Answers1

1

Resolved a similar issue by forwarding my pre-build logs to a file. I added the next bunch of code to the beginning of my pre-build script.

#/bin/bash
exec > "${PROJECT_DIR}/prebuild.log" 2>&1
set -o pipefail
set -e