开发者

Resource Folder Xcode 4, how to delete files from package

开发者 https://www.devze.com 2023-03-15 12:56 出处:网络
I am using Xcode 4. I have copied several images to main folder, I have built project, next I have deleted all images. When I list
  1. I am using Xcode 4. I have copied several images to main folder, I have built project, next I have deleted all images. When I list resources path by NSLog, I can see that there are still in this package. I've deleted build f开发者_如何学Goolder, clean etc. What should I do to delete this files from my package

  2. And second question. Why when I copy an entire folder, and list files and directories by:

    NSFileManager *fm = [[NSFileManager alloc] init];
    NSString *string = [[NSBundle mainBundle]resourcePath];
    for(NSString *name in [fm contentsOfDirectoryAtPath:string error:nil])
    {
    NSLog(@"%@", name);
    }
    

In console a can only see files from this folder.


Have you deleted the project from simulator ? You can do it in the Simulator app or deleting the project folder at ~/Library/Application\ Support/iPhone\ Simulator/

0

精彩评论

暂无评论...
验证码 换一张
取 消