I added a Run Script build phase to my Xcode project, the script is just
echo "Hello"
I'm not seing hello in the debug console or anything, so I guess my script is not being executed when I build.
Any ideas ?
( Edit: The navigator just shows )
GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Mon Aug 8 20:32:45 UTC 2011) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-apple-darwin".sharedlibrary apply-load-rules all Attaching to process 1955. **** UNIT TESTS **** Success: 33 tests passed. Test time: 0.02 seconds. ******************** [Switching to process 1955 thread 0x13c13]
Go to the Build Phases section of your project. (Click on the project, then on the main target, then on the “Build Phases” tab along the top.) Click the + at the top left to create a new build phase; choose “New Run Script Phase.” Xcode creates the script at the end of the list, naming it “Run Script.”
1 Select xcodeproj file of you project -> Select Target -> Select Build Phases -> Click on plus button (upper left corner) -> Select New Run Script Phase. 2If you want to run a script while it is being installed on the device then please check a little checkbox just below the script box.
Xcode: View > Navigators > Reports
The Report Navigator is the "chat bubble" in the Xcode sidebar.
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.
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
You will see the output in the build log.
After build is finished:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With