blinkinput / blinkinput-ios

OCR SDK for iOS powered by MicroBlink
Apache License 2.0
130 stars 26 forks source link

Bit Code support #5

Closed ivan-ushakov closed 8 years ago

ivan-ushakov commented 8 years ago

Hello,

I'm getting this error with current framework version:

MicroBlink.embeddedframework/MicroBlink.framework/MicroBlink' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64

Is it ok and I should disable bit code in my project? I just don't see this step in documentation. If yes, do you have any estimation when you add bit code support?

dgust6 commented 8 years ago

Hello,

Thank you for the error report, we certainly forgot to add that step to our Getting started guide. Yes, for now you need to disable bitcode in your project. Our next release, which will come soon (this month hopefully) will contain bitcode support.

Cerovec commented 8 years ago

Hi Ivan, current release supports bitcode. Can you double check if everything works for you? Kind regards, Jurica.

ivan-ushakov commented 8 years ago

Hi,

I'm having problems with updating SDK to current version. First of all you changed API (some class names, interfaces) and documentation was not updated. This could confuse user.

Second problem is linking. I'm getting this error:

   ld: warning: ignoring file /MyApp/MicroBlink.framework/MicroBlink, file was built for unsupported file format ( 0x76 0x65 0x72 0x73 0x69 0x6F 0x6E 0x20 0x68 0x74 0x74 0x70 0x73 0x3A 0x2F 0x2F ) which is not the architecture being linked (arm64): /MyApp/MicroBlink.framework/MicroBlink
Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_PPOverlayViewController", referenced from:

  "_OBJC_CLASS_$_PPSettings", referenced from:

  "_OBJC_CLASS_$_PPCoordinator", referenced from:

  "_OBJC_CLASS_$_PPRawOcrParserFactory", referenced from:

  "_OBJC_CLASS_$_PPRecognizerResult", referenced from:

  "_OBJC_CLASS_$_PPZXingRecognizerSettings", referenced from:

  "_OBJC_CLASS_$_PPBlinkOcrRecognizerSettings", referenced from:

  "_OBJC_METACLASS_$_PPOverlayViewController", referenced from:

  "_OBJC_CLASS_$_PPZXingRecognizerResult", referenced from:

  "_OBJC_CLASS_$_PPBlinkOcrRecognizerResult", referenced from:

ld: symbol(s) not found for architecture arm64
dgust6 commented 8 years ago

Hello,

For transitioning into new version please read our transition guide (available here: https://github.com/BlinkOCR/blinkocr-ios/blob/master/Transition%20guide.md). As for the error, it is probably related to Git LFS. Please install Git LFS (available here: https://git-lfs.github.com) so you can clone our repository correctly. Let us know if you need any more help!

Kind regards, Dino

ivan-ushakov commented 8 years ago

Yes, sorry about LFS. Linking works now. And bitcode works too.

bhaveshr970 commented 8 years ago

ld: warning: ignoring file /MyApp/MicroBlink.framework/MicroBlink, file was built for unsupported file format ( 0x76 0x65 0x72 0x73 0x69 0x6F 0x6E 0x20 0x68 0x74 0x74 0x70 0x73 0x3A 0x2F 0x2F ) which is not the architecture being linked (arm64): /MyApp/MicroBlink.framework/MicroBlink Undefined symbols for architecture arm64: "_OBJCCLASS$_PPOverlayViewController", referenced from:

"_OBJCCLASS$_PPSettings", referenced from:

"_OBJCCLASS$_PPCoordinator", referenced from:

"_OBJCCLASS$_PPRawOcrParserFactory", referenced from:

"_OBJCCLASS$_PPRecognizerResult", referenced from:

"_OBJCCLASS$_PPZXingRecognizerSettings", referenced from:

"_OBJCCLASS$_PPBlinkOcrRecognizerSettings", referenced from:

"_OBJCMETACLASS$_PPOverlayViewController", referenced from:

"_OBJCCLASS$_PPZXingRecognizerResult", referenced from:

"_OBJCCLASS$_PPBlinkOcrRecognizerResult", referenced from:

ld: symbol(s) not found for architecture arm64

How to resolve it. As I am using XCode 7.3.1 Please let me know

rezasham commented 8 years ago

Hi, I´m getting the exact same issue as bhaveshr970 reported above. Should we open up a new issue? I just downloaded and try to compile the swift version on my phone, but getting this issue wich actually causes 9 other errors and thus not able to run the code to test.

Thanks,

R

rezasham commented 8 years ago

Actually, seems like the issue is gone in the latest release. The problem exist if you try the latest master through a link somewhere referring to "Download". fixed in the latest release 2.1.2

Reza