加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

iphone – Xcode不会放弃资源文件

发布时间:2020-12-14 18:13:03 所属栏目:百科 来源:网络整理
导读:我今天的问题是 Xcode如何处理它创建的应用程序包中的资源文件.我知道这可能是微不足道的,但我找不到一个简单的出路. 基本上我的问题是Xcode似乎继续在应用程序包中包含资源文件(例如文本文件),即使该文件已从项目中删除. 这里详细介绍了这里发生的事情. ? A
我今天的问题是 Xcode如何处理它创建的应用程序包中的资源文件.我知道这可能是微不足道的,但我找不到一个简单的出路.
基本上我的问题是Xcode似乎继续在应用程序包中包含资源文件(例如文本文件),即使该文件已从项目中删除.
这里详细介绍了这里发生的事情.

?   Added a file to the project (both by choosing file - new file or dragging a file to the Xcode groups and files left column checking add to project folder if needed checkbox)
?   Compiled and launched the project in simulator
?   Verified that the file is present in myApp.app bundle,located in User/Library/Application/Support/iPhone Simulator/3.2/Applications/<application system number>/myApp.app and even in <my Xcode projects folder>/myApp/build/debugiPhonesimulator/myApp.app
?   Deleted the file from groups and files column in Xcode
?   Deleted the actual file with Finder in <my Xcode projects folder>/myApp/myFile
?   Deleted User/Library/Application/Support/iPhone Simulator/3.2/Applications/<application system number>/myApp.app and even <my Xcode projects folder>/myApp/build/debugiPhonesimulator/myApp.app
?   Emptied the trash
?   Verified that there is no reference to the file with Finder spotlight
?   Verified that there is no reference to the file with Xcode search
?   Rebuilt and relaunched the app in simulator
?   Verified that a brand new /Library/Application/Support/iPhone Simulator/3.2/Applications/<application system number>/myApp.app has been just created
?   Verified the content of /Library/Application/Support/iPhone Simulator/3.2/Applications/<application system number>/myApp.app bundle: the file is still there. Where the h. did Xcode take it from?

我肯定错过了一些非常明显的东西.有帮助吗?

解决方法

你检查过“目标”节点吗?如果没有那么;

>展开“目标”节点和应用程序.
>必须有一个名为“Copy Bundle Resources”的构建阶段.
>检查资源是否处于阶段.

您还可以尝试执行项目的完全清理,以确保不会保留任何临时文件.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读