我在我的项目中使用QR码创建项目https://github.com/kuapay/iOS-QR-Code-Generator。我已经完全按照说明添加了它。CGImageCreateWithMaskingColors无匹配函数
我可以编译和我没有什么问题,所以,以往的测试设备上运行该项目,但是当我试图将其存档,我得到以下错误:
Path/to/project/Barcode.mm:67:33: No matching function for call to 'CGImageCreateWithMaskingColors'
我拉我的头发在这一个。这里是代码片段,它与它使用的变量声明一起被调用。
CGImageRef rawImageRef = image.CGImage;
const float colorMasking[6] = {222, 255, 222, 255, 222, 255};
UIGraphicsBeginImageContext(image.size);
CGImageRef maskedImageRef = CGImageCreateWithMaskingColors(rawImageRef, colorMasking);
您是否有一些为调试而不是发布构建配置的构建设置? – Wain
**您赢了!** 我没有为活动架构而仅在发布版本上构建,只是调试。 – stevenpaulr