缺乏bundle display name的提示json
不在項目中修改文件數組
致使missing file服務器
使用命令行刪除全部的.svn文件網絡
sudo find /Users/apple/Documents/已完成項目/PJZJ/pjw178/ -name ".svn" -exec rm -r {} \;app
能夠參考我寫的另外一篇博客中第一條進行定位處理svn
http://my.oschina.net/u/2360054/blog/606844#OSC_h2_1 工具
以下代碼會產生一個數組越界的錯誤測試
NSArray *array=@[@"1",@"2"]; NSString *string=array[2];
Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 2 beyond bounds [0 .. 1]'
NSMutableArray *array=[NSMutableArray array]; NSString *string; [array addObject:string]; //以上代碼會報錯,由於string爲nil *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
NSString *string; NSDictionary *dict=@{@"key1":string}; *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
不支持text解析spa
json解析錯誤.net
非法開始數字 02, 很是蛋疼
404錯誤
檢查網址吧,嘗試http測試工具。多是網址錯誤或者服務器掛了
-(UIImage *)imageAtTime:(float)time asset:(AVURLAsset *)avAsset{ CMTimeScale timeScale=avAsset.duration.timescale; AVAssetImageGenerator *gen = [[AVAssetImageGenerator alloc] initWithAsset:avAsset]; gen.appliesPreferredTrackTransform = YES; CMTime imageTime ; float vedioTime=CMTimeGetSeconds(avAsset.duration); if (time>CMTimeGetSeconds(avAsset.duration)) { imageTime=CMTimeMakeWithSeconds(avAsset.duration.value,timeScale); }else{ imageTime = CMTimeMakeWithSeconds(time, timeScale); } NSError *error = nil; CMTime actualTime; CGImageRef image = [gen copyCGImageAtTime:imageTime actualTime:NULL error:&error]; UIImage *thumb = [[UIImage alloc] initWithCGImage:image]; if (error) { NSLog(@"error%@",error); } return thumb; }
沒有明顯的報錯信息,就是每次執行完這個語句,內存就會不斷增長。
在處理圖片完成後須要加入 CFRealease釋放內存
CFRelease(image);
tableview cell 標示符重複
數據類型轉換錯誤