xcode - 向 Xcode 添加了运行脚本阶段,但没有任何反应

我在我的 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/

相关文章:

java - Maven多模块项目的构建顺序?

build - 如何将 Autotools 项目转换为 CMake 项目?

jenkins - 使用 H/1 * * * * 每分钟运行一次 Jenkins 作业

gcc - 在 CMake 中使用 -isystem 而不是 -I

c++ - Visual Studio 2013 错误 MS8020 Build tools v14

ios - 使用没有代码设计的 xcodebuild 构建 iOS 应用程序

c# - 使用 CMake 生成 C# 项目

android - 错误 :Execution failed for task ':android:

xcode - 用于使用最新 sdk 的 xcodebuild 参数。

visual-studio-2012 - VS 2012 构建 Hello World : "The