京贝debug

京贝debug

1.Safe Area Layout Guide before iOS 9.0

设置不用

2.Multiple commands produce

iphoneos/NoteBook.app/.gitkeep’

在buildsetting删掉这些文件

3.Build input file cannot be found: /NoteBook.pch

实际文件不在这个位置

4.duplicate symbol for architecture x86_64

删除重复添加的文件

5.Undefined symbol: _OBJC_CLASS_$_CellModel

没有实现文件,只有头文件

6.不用一下子把很多cell都拉进去

7.Could not find a storyboard named ‘Main’ in bundle NSBundle

8.Terminating app due to uncaught exception ‘Bad property protocol declaration’, reason: ‘ is not allowed JSONModel property protocol, and not a JSONModel class.

类没实现

9‘NSInvalidArgumentException’, reason: ‘\* -[__NSArrayM insertObject:atIndex:]: object cannot be nil’**

空对象

10.JSON转的模型部分为空:key写错了.

11.Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘could not dequeue a view of kind: UICollectionElementKindCell with identifier HYBannerCellID - must register a nib or a class for the identifier or connect a prototype cell in a storyboard’

12.does not have a reuseIdentifier - cells must be retrieved by calling -dequeueReusableCellWithReuseIdentifier:forIndexPath:’

13.‘the cell returned from -collectionView:cellForItemAtIndexPath: does not have a reuseIdentifier - cells must be retrieved by calling -dequeueReusableCellWithReuseIdentifier:forIndexPath:’

14.banner图片显示不出来

15.数据为空,首先检查字符串

16.’Bad property protocol declaration’, reason: ‘ is not allowed JSONModel property protocol, and not a JSONModel class.’

16.itemForIndex 中用masonry

NSInternalInconsistencyException’, reason: ‘attempting to add unsupported attribute: <DCHandPickViewController: 0x101f39670>’

17.index 0 beyond bounds for empty array’

没初始化homeViewModel

18.‘the view returned from -collectionView:viewForSupplementaryElementOfKind:atIndexPath (UICollectionElementKindSectionFooter,<NSIndexPath: 0xca82a82eec4d21d1> {length = 2, path = 0 - 0}) was not retrieved by calling -dequeueReusableSupplementaryViewOfKind:withReuseIdentifier:forIndexPath: or is nil

因为返回高度给已删除的footer

19.Masonry导致卡顿,多余的constraints.

20.6 duplicate symbols for architecture arm64

复制的文件没删除

21.增加了数据后滚动后不见了,因为是重新处理的图的原因.

22.collect没数据,先看数据源

23.‘NSInvalidArgumentException’, reason: ‘\* -[__NSArrayM insertObject:atIndex:]: object cannot be nil’**

把 字典写成了对象.

24.‘-[__NSDictionaryM name]: unrecognized selector sent to instance 0x280ae28e0’

25NSRangeException’, reason: ‘\* -[__NSArrayM objectAtIndexedSubscript:]: index 0 beyond bounds for empty array’**

26__NSArrayM objectAtIndexedSubscript:]: index 0 beyond bounds for empty array’

跟加载无关,是有的数据没有

27.内存耗用大.因为图片多

28.masonry导致卡顿.也许要分两个section,或者重新定义个cell(搞定).

29空白

1
2
CGFloat top = 24; //XMGTitilesViewY;
self.tableView.contentInset = UIEdgeInsetsMake(top, 0, bottom, 0);

30.导入错了info.plist,导致错误:删除building,phase,info

Multiple commands produce /Info.plist’:

31.pch文件在Xcode新版本里需要手动添加,路径要写全

32.UIImageRenderingModeAlwaysOriginal导致图片显示不出来

33.Internal launch error: process launch failed: timed out waiting for app to launch

34.Use of undeclared identifier ‘AFHTTPRequestOperationManager’

现在都用的是NSURLSession了,AFN中用的是AFHTTPSessionManager了~~

35.‘UICollectionView must be initialized with a non-nil layout parameter’

要在init里注册

36.标签没字,要看赋值那里是不是有问题

尤其第一个显示了最后一个,可能就是全都赋给了第一个.

37.nearby顶部label没显示,看看加没加

38.nearby顶部label显示模糊图片,两个label,添加了两次,而且没对齐.

39.nearby顶部titlebuttons,没走到就变红,走完了还不变回白色.

设isShaping关闭好了

40.nearby 底部多出一条白线,黑白都有.

1
self.contentScrollView.frame = CGRectMake(0, tY + tH + bD, ScreenW, ScreenH - (tY + tH + bD) + 2);

41.data parameter is nil’

文件名没写对

42.‘NSInternalInconsistencyException’, reason: ‘Delegate must respond to locationManager:didFailWithError:’

43.滑动起来总是距离就刷没了

把计算的距离放在模型里存起来

44.行间有灰色空白

1
layout.minimumLineSpacing = 0;

45.Undefined symbol: ___gxx_personality_v0

46.字典数组数据取不到,看key是否写错了

47.只显示左侧不显示右侧,cell内部坐标用cell.bounds

48.dequeueReusableSupplementaryViewOfKind:UICollectionElementKindSectionHeader

+[DCDeatilCustomHeadView length]: unrecognized selector sent to class 0x10469bfa8’

49NSInvalidArgumentException’, reason: ‘\* -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]’**

发通知的通知名写错

50DYGLInitPlatform] connection to host has failed: Error Domain=NSPOSIXErrorDomain Code=2 “No such file or directory”

51.启动图片失效.

52. JSONModel,字典数组可以不是mutable

NSMutableDictionary *dict2 = [content objectForKey:@”storeInfo”]; dict2是nil,

53.Property type of MR_StoreInfo.shortName is not supported by JSONModel.’

54.转模型为nil,搞了半天找到了工具.其实是局部变量的原因.

55.NSSring longlongValue,null设成了NSUInteger,改为了string

56.-[MR_SectionMenuFooter _setReuseIdentifier:] refactor导致

57.Cannot remove an observer

<MR_StoreInfoFirstCollectionViewCell 0x11653afb0> for the key path “distanceStr” from <MR_StoreInfo 0x101779ea0> because it is not registered as an observer.’

58.[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]’

59.-[__NSArrayM objectAtIndexedSubscript:]: index 7 beyond bounds [0 .. 3]’

60.-[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]’

61.百度地图引擎初始化失败

创建的管理者立刻release了,没有保存到属性

/ijkmedia/ijksdl/ffmpeg/ijksdl_inc_ffmpeg.h:28:10: ‘libavutil/imgutils.h’ file not found