could not read data from '/Users/xxxx/xxxx/Info.plist': The file “Info.plist” couldn’t be opened
来源:互联网 发布:装饰360设计软件 编辑:程序博客网 时间:2024/06/05 08:41
【主要内容:】
1. 错误起因
2. 错误提示
3. 分析错误原因
4. 解决问题办法
一、错误起因
刚才新建了一个Xcode工程,然后对工程进行了最基本的配置,在工程中新建了许多文件夹、移动了文件的位置。重新编译之后发现Xcode报错。
二、错误提示
error: could not read data from '/Users/zhangmangyuan/project/你的工程名/你的工程目录/Info.plist': The file “Info.plist” couldn’t be opened because there is no such file.
报错截图:
三、 分析错误原因
从错误提示中可以找到一些关键词:Info.plist、there is no such file、could not read data from "/xxx/xxx/xxx"。
这个错误的提示就是说,不能从/xxxx/xxxx/xxxx这个路径下读取Info.plist的数据,因为没有这个文件。
找到问题所在:我想起来刚才创建完工程之后,对工程中的文件夹以及文件移动了位置。我把Info.plist文件放到其他路径下边了。所以导致Xcode找不到Info.plist文件。
四、 解决问题办法
1. 把Info.plist文件放回原处,也就是工程根目录下边,这个解决办法比较简单,我就不再图文说明了。下边着重说第二种。
2. 修改工程默认的Info.plist文件路径位置。首先第一步找到写Info.plist文件路径的位置,因为Info.plist属于工程文件,所以要去工程的Build Settiings下边寻找。
很容易在第一页Packaging下边有一个Info.plist File选项,后边有一个路径,如图所示:
我是把Info.plist文件放到了一个实体的Supporting Files文件夹下边,所以我只要把原来的RunningMan/Info.plist路径,修改成RunningMan/Supporting Files/Info.plist就可以了。
阅读全文
0 0
- could not read data from '/Users/xxxx/xxxx/Info.plist': The file “Info.plist” couldn’t be opened
- could not read data from '/Users/xxxx/xxxx/Info.plist': The file “Info.plist” couldn’t be opened
- could not read data from '/Users/xxxx/xxxx/Info.plist': The file “Info.plist” couldn’t be opened
- could not read data from 'Configurat'/Info.plist': The file “plist” couldn’t be opened because there
- could not read data from '/Users/xxxx/myapp-Info.plist'
- Read data:the file "Info.plist" couldn't be opened because there is no such file
- error: couldn't parse contents of '/Users/.../Info.plist': The data couldn’t be read because...
- error: couldn't parse contents of '/Users/.../Info.plist': The data couldn’t be read because...
- could not read data from '/Users/iamme/Documents/XCode/myapp/myapp/myapp-Info.plist': The file “myap
- Info.plist Utility Error: “Info.plist couldn't be opened because there is no such file”
- Info.plist Utility Error: “Info.plist couldn't be opened because there is no such file”
- Info.plist Utility Error: “Info.plist couldn't be opened because there is no such file”
- Info.plist Utility Error: “Info.plist couldn't be opened because there is no such file”
- Info.plist Utility Error: “Info.plist couldn't be opened because there is no such file”
- The file “Info.plist” couldn’t be opened because there is no such file
- The file “Info.plist” couldn’t be opened because there is no such file
- The file “Info.plist” couldn’t be opened because there is no such file.
- Xcode报错提示:“Info.plist couldn't be opened because there is no such file”
- 带搜索功能的下拉选择框select2
- Android Studio集成讯飞语音导出可供Unity使用的jar/aar
- 浅谈Memory Reordering
- Intellij IDEA 2017 debug断点调试技巧与总结详解篇
- 【Scikit-Learn 中文文档】监督学习:从高维观察预测输出变量
- could not read data from '/Users/xxxx/xxxx/Info.plist': The file “Info.plist” couldn’t be opened
- Cannot resolve symbol KeyEventCompat(android.support.v4.view.KeyEventCompat找不到)
- Cmake入门教程(三)
- ArrayList转换为字符串
- Java零散知识点:
- 自制linux
- aria ArCommands的用法
- Docker 安装 Nginx
- iOS_CodeSnippets