简体   繁体   English

iPhone模拟器从XCode获取已删除的资源

[英]iphone simulator picks up deleted resources from xcode

I'm getting confused. 我很困惑。 I add resources (mp4 videos) to the resources folder in xcode and run the simulator and it picks them up, great! 我将资源(mp4视频)添加到xcode的资源文件夹中,然后运行模拟器,然后将其拾取,太好了!

I delete the file and simulator still picks it up from the resources directory. 我删除了文件,模拟器仍然从资源目录中将其拾取。 I delete the file in the app bundle that xcode is using and it still detects this file. 我删除了xcode正在使用的应用包中的文件,但它仍检测到该文件。 I'm at a loss as to where/how I should delete items from xcode for it to actually remove them. 我不知道应该在哪里/如何从xcode删除项目以真正删除它们。

There's no 'remove from project' option, what am I missing here? 没有“从项目中删除”选项,我在这里想念什么?

Regards, 问候,

Sapatos 萨帕托斯

You need to 'clean' the build to move these artefacts. 您需要“清理”建筑物以移动这些文物。 Go to 'Build' and 'Clean' to remove them. 转到“构建”和“清洁”将其删除。

Alternatively you can blat projects from ~/Library/Application Support/iPhone Simulator/ sdk_version /Applications 另外,您也可以从〜/ Library / Application Support / iPhone Simulator / sdk_version / Applications 打包项目

您还从模拟器中删除了该应用程序吗?

Product>Clean didn't do it for me. 产品>清洁不适用于我。 I needed to do " Reset Content and Settings... " from inside the Simulator's menu -- a much safer way than messing around inside ~/Library/Application Support/iPhone Simulator/*sdk_version*/Applications 我需要从模拟器菜单中进行“ 重置内容和设置... ”-比在〜/ Library / Application Support / iPhone Simulator / * sdk_version * / Applications里面弄乱的方法要安全得多。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM