I'm trying to update an older (iOS4,5 era) app to iOS7 and am getting some compile/linker issues I can't figure out.
I'm not sure the solution to the small subset of the compile errors pasted below.
These issues appear to be from my usage of ScannerKit. I was on version 4.2.1 and tried to update to the latest 4.3.0 but the issues remain. I defined have libScannerKit.a in my "Link Binary with Libraries" build phase.
Undefined symbols for architecture i386:
"std::string::find(char, unsigned long) const", referenced from:
zxing::oned::Code39Reader::decodeRow(int, zxing::Ref<zxing::BitArray>) in libScannerKit.a(Code39Reader.o)
"std::string::substr(unsigned long, unsigned long) const", referenced from:
zxing::oned::ConfigurableMultiFormatUPCEANReader::decodeRow(int, zxing::Ref<zxing::BitArray>) in libScannerKit.a(ConfigurableMultiFormatUPCEANReader.o)
zxing::oned::MultiFormatUPCEANReader::decodeRow(int, zxing::Ref<zxing::BitArray>) in libScannerKit.a(MultiFormatUPCEANReader.o)
zxing::oned::UPCAReader::maybeReturnResult(zxing::Ref<zxing::Result>) in libScannerKit.a(UPCAReader.o)
zxing::oned::UPCEReader::convertUPCEtoUPCA(std::string) in libScannerKit.a(UPCEReader.o)
"std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const", referenced from:
zxing::BitMatrix::description() in libScannerKit.a(BitMatrix.o)
zxing::GridSampler::checkAndNudgePoints(zxing::Ref<zxing::BitMatrix>, std::vector<float, std::allocator<float> >&) in libScannerKit.a(GridSampler.o)
zxing::GF256Poly::description() const in libScannerKit.a(GF256Poly.o)
zxing::datamatrix::DecodedBitStreamParser::decode(zxing::ArrayRef<unsigned char>) in libScannerKit.a(DecodedBitStreamParser-E74816B4CEA9EA3A.o)
zxing::oned::Code128Reader::decodeRow(int, zxing::Ref<zxing::BitArray>) in libScannerKit.a(Code128Reader.o)
zxing::qrcode::DecodedBitStreamParser::decodeByteSegment(zxing::Ref<zxing::BitSource>, std::string&, int) in libScannerKit.a(DecodedBitStreamParser-B6EF2F7091225D41.o)
zxing::qrcode::DecodedBitStreamParser::decodeNumericSegment(zxing::Ref<zxing::BitSource>, std::string&, int) in libScannerKit.a(DecodedBitStreamParser-B6EF2F7091225D41.o)
...
"std::ostream::flush()", referenced from:
zxing::datamatrix::DataMatrixReader::decode(zxing::Ref<zxing::BinaryBitmap>) in libScannerKit.a(DataMatrixReader.o)
I'm trying to just update the app and make this newest release iOS7+ only. This project is old and it was original created in the early versions of XCode 4 so I dont know if there is some kind of vestigial config file issues or something. Or is this something where ScannerKit is built against i386 and I'm not including that arch in my build or something?
If anyone is interested, here is a full gist of the compile errors