iOS日常开发遇到的问题

目录

1、tableView上拉加载偏移一段距离

2、出现错误Assertion failure in -[UITableView _configureCellForDisplay:forIndexPath:]

3、启动页出现空白

4、IJKplayer 音视频不同步问题

5、git clone 报错 RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

6、file not found with include; use "quotes" instead

7、cocoapod导库报错

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


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)    就可以了

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值