Создание QR штрих-кодов с ZXingObjC на Mac

Я пытаюсь использоватьhttp://github.com/TheLevelUp/ZXingObjC создавать QR-коды в моем приложении Mac.

Это работает для всех типов штрих-кодов, но возвращает ноль на QRcode! оба «результат» и «ошибка» пустые. вот мой код:

NSError* error = nil;
ZXMultiFormatWriter* writer = [[ZXMultiFormatWriter alloc] init];
ZXBitMatrix* result = [writer encode:@"12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678"
                              format:kBarcodeFormatQRCode
                               width:1750
                              height:1750 hints:[[ZXEncodeHints alloc] init] error:&error];
if (result) {
    CGImageRef image = [[ZXImage imageWithMatrix:result] cgimage];
    self.image.image = [[NSImage alloc] initWithCGImage:image size:NSMakeSize(1750, 1750)];
} else {

    NSLog(@"error: %@", error);
}

Что в этом плохого?

Ответы на вопрос(2)

Ваш ответ на вопрос