Cocoa-Touch-Barcodes icon indicating copy to clipboard operation
Cocoa-Touch-Barcodes copied to clipboard

SwapParity -> Unrecognized selector

Open fivecord opened this issue 12 years ago • 1 comments

[__NSCFConstantString swapParity]: unrecognized selector sent to instance 0x120a28 It happens in the file NKDEAN13Barcode.m in the line [theReturn appendString:[[self _encodeChar:contentString[i]] swapParity]];

I get the error with all EAN- and UPCA-barcode creation...

Does anyone have an idea how to solve it?

fivecord avatar Dec 23 '12 11:12 fivecord

Can you try adding -ObjC to your "Other Linker Flags" in your project? That method is added via an NSString category in the project, and I believe that it's not being applied due to the lack of the -ObjC flag.

netshade avatar Jan 13 '13 17:01 netshade