Print Xcode build phase output when run via fastlane

239 Views Asked by At

I have a custom Run Script phase in my Xcode project that outputs some information: enter image description here



When I build the app via Xcode, I see the output of the script (Planning build, Building for debugging etc.):

enter image description here


However, when I build the project via `fastlane gym`, this output is not shown:

enter image description here

Is there any way I can make that output appear when run through fastlane as well?

Thanks

P.S. This post has gone through a couple of major edits while I realized the root cause better. Apologies for that.

2

There are 2 best solutions below

1
On

I don't know if it will help, but have you tried adding -verbose to the xcodebuild command? You can see the explanation in man xcodebuild.

0
On

although not perfect, if you type "warning: Hello" you will see it in the log as a warning

echo "warning: Hello"