目录
2、出现错误Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
5、git clone 报错 RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
6、file not found with include; use "quotes" instead
1、tableView上拉加载偏移一段距离
解决方法:
self.tableView.estimatedRowHeight = 0;
self.tableView.estimatedSectionHeaderHeight = 0;
self.tableView.estimatedSectionFooterHeight = 0;
if (@available(iOS 11.0, *)) {
self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
}else {
self.automaticallyAdjustsScrollViewInsets = NO;
}
2、出现错误Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]
解决方法:cellForRowAtIndexPath 返回的 cell 为 nil。
3、启动页出现空白
启动页出现空白然后在进入正常启动页面,原因是模拟器上装了相同bundleID的APP,该APP没有启动页导致,删除重装即可。
4、IJKplayer 音视频不同步问题
// framedrop:是在视频帧处理不过来的时候丢弃一些帧达到同步的效果
[options setPlayerOptionIntValue:5 forKey:@"framedrop"];
5、git clone 报错 RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
报错
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
解决方法:
1、sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
2、pod setup
3、重新clone
6、file not found with <angled> include; use "quotes" instead
提示要将 #import <ColumnButton.h> 改成 #import “ColumnButton.h”的错误
解决方法:进入build setting - always search user path 将No 改为Yes 。如果已经是YES,则改成NO在改回YES即可。
7、cocoapod导库报错
duplicate symbol _OBJC_METACLASS_$_ADMobGenTrueShowManager in:
报重复添加的错误。
解决方法:build setting->other linker flag 把 -all_load换成-ObjC。如果同时存在则删除 -all_load
8、The `FounderReader-2.5 [Debug]` target overrides the `HEADER_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-FounderReader-2.5/Pods-FounderReader-2.5.debug.xcconfig'. This can lead to problems with the CocoaPods installation
在 HEAD_SEARCH_PATH(或者其他地方) 加入$(inherited) 就可以了

2万+

被折叠的 条评论
为什么被折叠?



