GHUnitIOS 构建错误
我一直在尝试让 gh-unit 在 iOS 项目中工作,但遇到了一个奇怪的构建错误。我使用的是 4.2 iOS SDK 和 XCode 3.2.5。
我遵循了本教程:
http://4arrowsmedia.com/2010/09/ghunit-setup/< /a>
我遇到了与第一条评论中的人相同的构建错误。
expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
有趣的是,我仅在使用 .pch 文件时出现此错误。如果我不使用它,那么一切都会正常运行。我想使用 .pch 文件,因为我在整个项目中使用了很多头文件,并且我不想将它们包含在每个文件中。
I have been trying to get gh-unit working in an iOS project and I am getting a weird build error. I am using the 4.2 iOS SDK and XCode 3.2.5.
I followed this tutorial:
http://4arrowsmedia.com/2010/09/ghunit-setup/
And I am getting the same build error as the guy in the first comment.
expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
Interestingly I only get this error when using a .pch file. If I don't use one then everything runs fine. I would like to use a .pch file as I have lots of header files I use throughout the project and I don't want to include them in every file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我刚刚遇到了同样的问题,发现这是由于我的标题搜索路径中列出的重叠目录引起的。当我删除重复的目录时,构建成功。
就我而言:
我在标题搜索路径中包含了 Libraries/ (递归)和 Libraries/RestKit/ 。我删除了 Libraries/ 并且构建成功了。
I just had this same problem and found that it was caused by having overlapping directories listed in my Header search paths. When I removed the duplicate directory, the build succeeded.
In my case I had:
I had included both Libraries/ (recursive) and Libraries/RestKit/ in my Header Search Path. I removed Libraries/ and the build succeeded.