简体   繁体   English

Xcode 7.2-clang:错误:没有这样的文件或目录:

[英]Xcode 7.2 - clang: error: no such file or directory:

I keep trying to run my Xcode project titled 'Simple Calculator' and it keeps giving me the following error, 我一直在尝试运行名为“简单计算器”的Xcode项目,并且不断出现以下错误,

clang: error: no such file or directory: '/Users/computerscienceyr1/Desktop/Simple Calculator/Simple Calculator/ViewController.m' clang:错误:没有这样的文件或目录:'/ Users / computerscienceyr1 / Desktop / Simple Calculator / Simple Calculator / ViewController.m'

Here is a screenshot of the whole issue Screenshot . 这是整个问题Screenshot的屏幕截图
Each time I create a 'Simple Calculator' Directory, the error extends into: '/Users/computerscienceyr1/Desktop/Simple Calculator/Simple Calculator/Simple Calculator/ViewController.m' and goes on and on. 每次我创建“简单计算器”目录时,错误都会扩展到:“ / Users / computerscienceyr1 /桌面/简单计算器/简单计算器/简单计算器/ViewController.m”,并不断出现。

                                    **UPDATED**

This is what happens when double clicked Screenshot . 这是双击截图时发生的情况。

Targets> Build Phases> Compile Sources - File exists. 目标>构建阶段>编译源-文件存在。

Removed ViewController.m and others again. 再次删除了ViewController.m和其他。 No changes occurred. 没有发生任何变化。

Try this: open the .pbxproj file, search for the file name and delete the rows where it appears, then add the file again to your project. 尝试以下操作:打开.pbxproj文件,搜索文件名并删除出现的行,然后将文件再次添加到项目中。

This post may help you as well. 这篇文章也可能对您有帮助。

暂无
暂无

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

相关问题 模拟器clang上的Xcode构建错误:错误:没有这样的文件或目录:'__entitlements' - Xcode build error on simulator clang: error: no such file or directory: '__entitlements' XCode Clang错误没有带有Push Plugin的此类文件或目录(Cordova项目) - XCode clang error no such file or directory with Push Plugin (Cordova project) clang:错误:没有这样的文件或目录: - clang: error: no such file or directory: iOS Clang错误没有文件或目录 - iOS clang error no file or directory ios - 找到不支持的资源(不是目录,文件或符号链接) - xcode 7.2 - ios - unsupported resource found (something not a directory, file or symlink) - xcode 7.2 Apple Match-O 链接器错误/clang:错误:没有这样的文件或目录 - Xcode 11 - Apple Match-O Linker Error / clang: error: no such file or directory - Xcode 11 仅在发布版本中,clang:错误:没有这样的文件或目录:'/ Users / vagrant / Library / Developer / Xcode / DerivedData - Only in release build, clang: error: no such file or directory: '/Users/vagrant/Library/Developer/Xcode/DerivedData 尝试将xcode项目构建为手机后出现多声“ c声:错误:没有此类文件或目录” - Mulitple 'clang: error: no such file or directory' after trying to build xcode project to phone 我删除了一个文件,Xcode给出了一个Clang错误 - I Deleted A File, And Xcode Is Giving A Clang Error lang:错误:没有这样的文件或目录:'ObjC'-XCTests - Clang: error: no such file or directory: 'ObjC' - XCTests
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM