解决no such file or directory的问题

当我们在给我们项目中的一些文件转移位置存放的时候,经常性的会遇到no such file or directory这个错误,也就是说是在路径下找不到相关的文件,这里介绍一种方法,解决这个曾经纠结我好久的问题,也希望对大家能够有所帮助!

1.这是经常遇到的一个错误,如图:

2.在你的项目中找到发生错误的那个文件,这里一xx.pch为例,点击pch文件,查看xcode右边显示的内容详细,然后找到其目前下的文件路路径,然后复制即可!

3.在build setting中,搜索到你想要找的文件,然后具体步骤看图,最后回车即可

4. 重新运行xcode,即可正常运行

时间: 2024-08-05 00:19:23

解决no such file or directory的问题的相关文章

Redis 2.8.18 安装报错 error: jemalloc/jemalloc.h: No such file or directory解决方法

错误描述 安装Redis 2.8.18时报错: zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directoryzmalloc.h:55:2: error: #error "Newer version of jemalloc required"make[1]: *** [adlist.o] Error 1make[1]: Leaving directory `/data0/src/redis-2.6.2/src

PHP连接MySQL报错"No such file or directory"的解决办法

好下面说一下连接MYSQL数据库时报错的解决办法. 1,首先确定是mysql_connect()和mysql_pconnect()的问题,故障现象就是函数返回空,而mysql_error()返回“No such file or directory” 2,写个phpinfo页面,找到mysql.default_socket.mysqli.default_socket.pdo_mysql.default_socket 3,启动mysql(见说明2),执行命令 STATUS; 记下UNIX socke

解决hadoop中 bin/hadoop fs -ls ls: `.': No such file or directory问题

出现这样的问题确实很苦恼...使用的是2.7版本..一般论坛上的都是1.x的教程,搞死人 在现在的2.x版本上的使用bin/hadoop fs -ls  /就有用 应该使用绝对路径就不会有问题....mkdir也是一样的..具体原因不知,我使用相对路径会出现错误.... 解决hadoop中 bin/hadoop fs -ls ls: `.': No such file or directory问题

[转]pro*c/c++编译错误 ” error: sqlca.h: No such file or directory “ 的解决办法

$ gcc -o test test.c 出现错误:error: sqlca.h: No such file or directory [解决方法]知道 sqlca.h 在 $ORACLE_HOME/precomp/public/下更正后执行“$ gcc -o test test.c -I $ORACLE_HOME/precomp/public 又出现错误: undefined reference to `sqlcxt' [解决方法]需要用到$ORACLE_HOME/lib/libclntsh.

ubuntu解决libstdc++.so.6: cannot open shared object file: No such file or directory:问题

解决libstdc++.so.6: cannot open shared object file: No such file or directory:原因在于,在13.10 版本中,ia32_libs 被废弃了导致没有32位的lib库.解决方法sudo apt-get install lib32stdc++6sudo apt-get install lib32z1

解决:cant't run '/etc/init.d/rcS':No such file or directory

Linux内核启动时提示这样的错误:cant't run '/etc/init.d/rcS':No such file or directory 请用vim打开文件:/etc/init.d/rcS 观察里面是否有"^M"这样的乱码, 有的话删除即可! 解决:cant't run '/etc/init.d/rcS':No such file or directory

error opening trace file: No such file or directory (2)错误解决方法

在练习项目的时候报错    error opening trace file: No such file or directory (2)字面意思是找不到文件,实际上也就是找不到文件,查了其他人的解决方法后还是没解决.突然想到新版本的创建布局文件的时候都有两个一个是文件名命名的xml布局文件另一个是,如上图示,当不与java代码交互的时候布局文件写入fragment_main.xml显示没问题,当涉及到与java代码交互时必须放到activity_main.xml中,否则就会抱错,然后程序意外停

解决fatal error: sys/system_properties.h: No such file or directory compilation terminated.

编译的异常log: system/core/include/cutils/properties.h:22:35: fatal error: sys/system_properties.h: No such file or directory compilation terminated. make[1]: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libinput_intermediates/<strong>xxxxx</strong>

ubuntu 64bit arm-linux-gcc: No such file or directory 解决

通过下面这个解决 ubuntu 64bit  arm-linux-gcc: No such file or directory 安装 sudo apt-get install lsb-core解决 http://blog.csdn.net/zjb9605025/article/details/6412821 http://blog.chinaunix.net/uid-22477616-id-3708090.html