Added Run Script phase to Xcode, but nothing happens

The quickest way that I found is by using the below echo command in my Run Script with "warning:" in it. Xcode threw a warining. Hence confirmed your script is getting executed

echo "warning: RUN SCRIPT in ACTION"

you also can try echo "error: RUN SCRIPT in ACTION"


You will see the output in the build log.

After build is finished:

  • Go to "View -> Navigators -> Show Report Navigator" from menu,
  • Or press cmd+9 shortcut (cmd+8 in older ExCode),
  • Then check the latest log.

Xcode: View > Navigators > Reports

The Report Navigator is the "chat bubble" in the Xcode sidebar.

Report Navigator in Xcode

Select your most recent Build from the sidebar on the left.

Then click All Messages in the tab bar to see the output of your Run Script Build Phase.

View Run Script Build Phase output in Xcode 6

Xcode Version changes:

  • Xcode 12: View > Navigators > Reports

  • Xcode 6: View > Navigators > Show Report Navigator

  • Xcode 5: View > Navigators > Show Log Navigator

  • Xcode 4: View > Navigators > View Log Navigator

Tags:

Build

Xcode