简体   繁体   English

OCUnit在Snow Leopard VS Leopard上

[英]OCUnit on Snow Leopard VS Leopard

I am working on a iPhone project that just added a second developer. 我正在研究一个iPhone项目,该项目刚刚添加了第二个开发人员。 The new developer got a new shiny macbookpro with snow leopard and Xcode 3.2. 新开发人员使用雪豹和Xcode 3.2获得了新的闪亮的macbookpro。 I am still on leopard and using Xcode 3.1. 我仍然在豹和使用Xcode 3.1。

He is getting errors trying to run the unit tests (OCUnit and OCMock are being used). 他在尝试运行单元测试时遇到错误(正在使用OCUnit和OCMock)。

The shell script as the last step of the Test Target fails with a -1. 作为测试目标的最后一步的shell脚本失败,返回-1。

Any ideas as to what is happening, or suggestions to fix? 关于正在发生的事情有什么想法,或者有什么建议可以解决?

It blows up calling RunTestsForBundle but that is where we get stumped. 调用RunTestsForBundle会炸毁,但这就是我们的绊脚石。 Is RunTestsForBundle a script, but I can't find it anywhere on my hard drive? RunTestsForBundle是一个脚本,但是在硬盘上的任何地方都找不到吗?

我自己没有遇到任何问题,因此无法验证,但是我听说Xcode 3.2.1(适用于iPhone OS 3.1.2)也解决了一些与单元测试有关的问题。

It looks like OCMock was not setup correctly in the Tests target. 看起来OCMock没有在“测试”目标中正确设置。 I needed a copy files step in between the Compile Sources and Copy Bundle Resources for OCMock. 我需要在OCMock的“编译源”和“复制捆绑包资源”之间进行复制。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM