1

I am trying to add the MLVisionTextModel of Firebase 5.0.1 into an Xcode project without cocoapods. I have added all the dependent frameworks as stated in the Readme.md file. Getting the following linker errors:

Showing All Messages "_OBJC_CLASS_$_LAContext", referenced from: objc-class-ref in GoogleMobileVision(MDMPasscodeCache_f189776e75765630b82721fafea64052.o) "_vImageConverter_CreateWithCGImageFormat", referenced from: +[GMVUtility(Internal) sampleBuffer32BGRATo32RGBA:] in GoogleMobileVision(GMVUtility+Internal_1a3089c1f18dbb4046735909972b8cb2.o) "_vImageConvert_AnyToAny", referenced from: +[GMVUtility(Internal) sampleBuffer32BGRATo32RGBA:] in GoogleMobileVision(GMVUtility+Internal_1a3089c1f18dbb4046735909972b8cb2.o) "_vImageConverter_Release", referenced from: +[GMVUtility(Internal) sampleBuffer32BGRATo32RGBA:] in GoogleMobileVision(GMVUtility+Internal_1a3089c1f18dbb4046735909972b8cb2.o) "_vImageBuffer_InitWithCGImage", referenced from: +[GMVUtility(Internal) rgbaPixelDataFromCGImage:] in GoogleMobileVision(GMVUtility+Internal_1a3089c1f18dbb4046735909972b8cb2.o) "_vImageRotate_ARGB8888", referenced from: +[GMVUtility(Internal) rotatePixelData:width:height:bytesPerRow:withAngle:] in GoogleMobileVision(GMVUtility+Internal_1a3089c1f18dbb4046735909972b8cb2.o) "_vImageHorizontalReflect_ARGB8888", referenced from: +[GMVUtility(Internal) flipRGBA8888Horizontally:width:height:bytesPerRow:] in GoogleMobileVision(GMVUtility+Internal_1a3089c1f18dbb4046735909972b8cb2.o) "_vImagePermuteChannels_ARGB8888", referenced from: +[GMVUtility(Internal) permutate:width:height:bytesPerRow:order:] in GoogleMobileVision(GMVUtility+Internal_1a3089c1f18dbb4046735909972b8cb2.o) "_vImageFlatten_RGBA8888ToRGB888", referenced from: +[GMVUtility(Internal) flattenRGBA8888ToRGB888:width:height:bytesPerRow:] in GoogleMobileVision(GMVUtility+Internal_1a3089c1f18dbb4046735909972b8cb2.o) ld: symbol(s) not found for architecture x86_64

Any help is appreciated.

2 Answers 2

4

The issue got resolved after adding Accelerate.framework as part of the build phases in Xcode.

2

Firebase frameworks are built statically, so if you are adding them manually to your project they should not be under embedded binaries in xcode under your application target. If you have it there removing it should fix the issue.

10
  • Have added all of them under Linked Frameworks and Libraries. Don't have any entries under Embedded Binaries.
    – avdhut
    May 22, 2018 at 5:01
  • Did you add all off the frameworks necessary for GoogleMobileVision? They will be under the same folder if you downloaded from here firebase.google.com/docs/ios/setup#frameworks
    – jugutier
    May 22, 2018 at 10:25
  • Are they also added in the framework search path and header search paths? Can you share a github repo with your current project setting? Also I can see that you’re trying to compile for the simulator, do you get the same result if running on the phone? Finally the methods you’re trying to access belong to a GMVUtility category called internal, which makes me think those header are meant to be hidden. If you browse the framework in the filesystem
    – jugutier
    May 22, 2018 at 10:28
  • Can you find GMVUtility+Internal.h?
    – jugutier
    May 22, 2018 at 10:29
  • 1
    Hey, thanks for all the help! The issue was resolved after adding Accelerate framework.
    – avdhut
    May 30, 2018 at 8:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.