refs:
http://blog.youkuaiyun.com/iitvip/article/details/8513327
http://blog.youkuaiyun.com/xwren362922604/article/details/8084714
1.Create groups for any added folders:
把选择的文件添加到工程的group下。应该它生成的文件夹是黄色的。
2.Create folder references for any added folders:
这种方法是建立一个文件夹的索引,同时文件夹中的所有文件也会添加到整个工程。应该他生成的文件夹是蓝色的。
build phases --> copy bundle resouces
使用1,文件全部已经加入来,使用2,虽然在工程 tree中可以查看到,但是好像没有真的加入,所以可以在copy bundle resouce中添加。
//copy book to cache folder
NSString *resFilePath = [[NSBundle mainBundle] pathForResource:@"TargetResouce" ofType:nil];
使用1,TargetResouce 找不到,resFilePath 返回nil;
使用2,可以找到