我在我的 Xcode 项目中添加了一个运行脚本构建阶段,脚本只是
echo "Hello"
我没有在调试控制台或任何东西中看到你好,所以我猜我的脚本在构建时没有被执行。
有什么想法吗?
(编辑:导航器只显示)
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]
最佳答案
Xcode:查看 > 导航器 > 报告
报告导航器是 Xcode 侧边栏中的“聊天气泡”。
从左侧边栏中选择您最近的Build
。
然后单击标签栏中的 All Messages
以查看 Run Script Build Phase 的输出。
Xcode 版本变更:
Xcode 12:查看 > 导航器 > 报告
Xcode 6:View > Navigator > Show Report Navigator
Xcode 5:查看 > 导航器 > 显示日志导航器
Xcode 4:查看 > 导航器 > 查看日志导航器
https://stackoverflow.com/questions/8589365/