更改方式有3种:
- 降级xcode
- 升级到rn 0.54
- 用以下的方法改源码
原来是这样:
// return [NSString stringWithFormat:@"%@|%g|%g|%g|%zd|%@",
// imageTag, size.width, size.height, scale, resizeMode, responseDate];
改为这样
return [NSString stringWithFormat:@"%@|%g|%g|%g|%lld|%@",
imageTag, size.width, size.height, scale, (long long)resizeMode, responseDate];
就是把%zd -> %lld, 对应的值添加 (long long) 就行了