1
我最近删除了Xcode中的文件。在我删除这个文件后,我清理了这个项目(Shift + cmd + K)。对于一个或其他原因,系统显示警告的清洗过程已经成功完成后:删除的文件仍然在NSBundle
没有规则来处理文件“$(PROJECT_DIR)/json2.js”型sourcecode.javascript为i386硬件架构
但是,这不是因为我删除1231345.jpg
我使用下面的代码,以检查是否存在的路径
if([[NSBundle mainBundle] pathForResource:@"1231345" ofType:@"jpg"] == NULL)
{
//Here some code if the image doesn't exist
} else {
//Here some code if the image does exist
}
如果我手动更改“pathForResource”哪个不是招”一个随机数删除的文件不是以前文件一切正常!
这里怎么回事?
这确实对我有用http://stackoverflow.com/questions/8000881/cant-remove-files-from-mainbundle – Krishnan