xcode9编译失败问题及解决办法

1. “Pass an object of the correct type to va_start”

问题描述:更新了 xcode 9 后 ZXing 的第三方库编译失败,提示Pass an object of the correct type to va_start。具体代码定位到了 ZXByteArray 类中的initWithBytes方法的va_start函数调用中。

解决办法:将- (id)initWithBytes:(int8_t)byte1, ...的参数类型由 int8_t 转变为 double 类型即可。

为什么会这样?点击我查看

显示评论