使用代码4时的编译错误

时间:2012-06-07 12:58:56

标签: iphone objective-c xcode

我使用DCControls这是一个扩展的开源UIControll。我用XCode 4下载了一个运行它,我得到如下错误:

clang: error: no such file or directory: '/Users/apple/Desktop/domesticcatsoftware-DCControls-722bb9c/../DCIntrospect/DCIntrospect/DCCrossHairView.m'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

我搜索了此项目中错误消息中指示的文件DCCrossHairView.mNo search result。我想知道可能的原因以及如何解决它?

2 个答案:

答案 0 :(得分:4)

你是对的。看起来他们有一些用于测试的文件(或者无论什么原因),他们做了删除文件而不是引用。只需选择DCIntrospect组并将其删除即可。它应该在那之后构建好(只是尝试它并且它起作用)

enter image description here

答案 1 :(得分:1)

即使我下载了示例应用程序,发现有些文件丢失。在xcode中转到DCIntrospect文件夹,你会发现有些文件被删除,它们在项目中都没有,甚至你的DCCrossHairView.Delete那些文件它会起作用。