【问题标题】:Not able to run GHUnit test from command line无法从命令行运行 GHUnit 测试
【发布时间】:2014-01-06 15:14:26
【问题描述】:

我正在尝试从命令行运行 GHUnitTest 案例。 遵循Here的所有步骤

我的 GHUnitTest 目标名称是 GHUnitTests。我在命令行上使用以下脚本

default: 

\# Set default make action here

\# xcodebuild -target GHUnitTests -configuration MyMainTarget -sdk iphonesimulator build
clean:
-rm -rf build/* 
test:  GHUNIT_CLI=1 xcodebuild -target GHUnitTests -configuration Debug -sdk iphonesimulator build`

在终端上使用$ make test 运行它。 但总是出现以下错误。

make: * 没有规则来制作目标`test'。停止。>

如何解决。 请帮忙

【问题讨论】:

    标签: ios gh-unit


    【解决方案1】:

    我认为您可能只是从错误的目录运行“make test”。

    让“make test”工作的第一步是在你的项目目录中,在你的 Makefile 旁边。

    您的 makefile 应该看起来像这样(我在您的示例中看到它): https://github.com/gh-unit/gh-unit/blob/master/Project-iOS/Makefile.example

    如果你的项目目录是~/ios/app/MyApp/, 那么您应该将 Makefile 保存到 ~/ios/app/MyApp/Makefile 那么

    cd ~/ios/app/MyApp
    

    然后

    make test
    

    【讨论】:

      猜你喜欢
      • 2015-08-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多