苹果LLVM 6.0错误:铿锵失败,退出代码-1
我在我的MacBook Air上创建了我的应用程序,并一直在那里工作,这很好。然后我开始与一个使用另一台Mac的同事合作(当然)。无论如何,我们通过Dropbox共享我们的Xcode项目(我们只是切换到BitBucket,别担心;)),当他试图在他的Mac上打开项目时,出现了一个Apple LLVM 6.0 Error
,出现以下错误,而在我的计算机上同一个项目完美运行:苹果LLVM 6.0错误:铿锵失败,退出代码-1
clang: error: no such file or directory: '/Users/linus/Dropbox/Apps/My App/Projekt/My App/SlideMenu/SlideMenu-Prefix.pch' clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
错误的最后一行对我来说似乎最重要,这就是为什么我在这里列出它们的原因。
我确实知道这个问题现在被问了几次,但从来没有一个有用的答案为我工作。我试图禁用Foundation Assertions
,正如它在这个主题的另一个答案中所说的那样,但那不起作用。此外,我重新启动&甚至重新安装Xcode和所有文件都存在,没有一个应该丢失。
我正在运行Xcode 6.0.1和Mac OS X 10.10。我希望有人能回答这个,我现在有点绝望......
嘿,我刚碰到同样的问题。基本上我删除了我的测试目标。我发现这一点:
Errors When Compiling iOS 8, Xcode 6.0.1
这基本上说:
Click on the name of your project on the list of files/folders on the left in Xcode (at the very top of the list). Look at the "Targets" section on the left-hand side of the window to the right. Likely, there's two listed with the second being a "test" item. Right-click on that item and select "delete". Then try to run the project again. See screenshot below for a visual cue.
和图像,以帮助你:
编辑:另外在tests
目标,我居然发现,我并不一定要删除它,有一个破碎的路径,刚刚杀青它使它再次一切工作。
LOL ,高兴地帮助:) – jalagrange 2014-11-09 17:56:45
不适合我( – 2015-01-16 09:09:43
)任何想法如果你没有测试目标如何解决这个问题? – mikeLspohn 2015-05-15 19:50:12
铛不能找到你的预编译头文件。您是否检查过/ Users/linus/Dropbox/Apps/My App/Projekt/My App /中是否有名为SlideMenu-Prefix.pch的文件?预编译头文件的路径由目标的“Prefix Header”构建设置指定。
- 结识新文件:⌘cmd+ N
- 的iOS/Mac的>其它> PCH文件> YourProject-Prefix.pch。
- 项目>构建设置>搜索:“前缀头”。
- 在 “苹果LLVM 6.0”,你会得到前缀头键
- 式中: “为yourprojectname/YourProject-Prefix.pch”
- 清洁工程:⌘cmd+⇧shift+ K
- 构建项目:⌘ CMD + B
尝试, 在Xcode项目设置, Targets->测试中─>构建设置 - >链接删除所有linkig
或删除测验科作为一个整体。
重新构建并完成!
您不需要删除整体构建设置。只是改变了库搜索路径,这里的步骤:
- 单击您的项目名称(导航的最顶端)
- 点击你的项目目标
- 单击该选项卡
Build Settings
- 搜索
LIBRARY_SEARCH_PATHS
- 将其值更改为
$(inherited)
标志。
在这里你走!
否则,您可以随时删除构建设置!干杯!
如何删除生成设置? – 2015-11-25 09:08:59
@JosephSelvaraj检查选择的答案:http:// stackoverflow。 COM/A /4396941分之26812114 – 2015-11-25 11:38:07
看到此URL,它解决乌尔问题http://stackoverflow.com/questions/24181673/command-applications-xcode-app-contents-developer-toolchains-xcodedefault-xctoo/24184503#24184503 – 2014-11-06 05:50:43