在没有cocapods的iOS上使用Firebase ML Kit时,GoogleMobileVision中的链接器错误

时间:2018-05-21 12:34:40

标签: xcode firebase linker-errors firebase-mlkit google-ios-vision

我正在尝试将Firebase 5.0.1的MLVisionTextModel添加到没有cocoapods的Xcode项目中。我已经添加了Readme.md文件中所述的所有依赖框架。获取以下链接器错误:

  

显示所有消息     “_OBJC_CLASS _ $ _ LAContext”,引自:         GoogleMobileVision中的objc-class-ref(MDMPasscodeCache_f189776e75765630b82721fafea64052.o)     “_vImageConverter_CreateWithCGImageFormat”,引自:         + [GMVUtility(Internal)sampleBuffer32BGRATo32RGBA:]在GoogleMobileVision中(GMVUtility + Internal_1a3089c1f18dbb4046735909972b8cb2.o)     “_vImageConvert_AnyToAny”,引自:         + [GMVUtility(Internal)sampleBuffer32BGRATo32RGBA:]在GoogleMobileVision中(GMVUtility + Internal_1a3089c1f18dbb4046735909972b8cb2.o)     “_vImageConverter_Release”,引自:         + [GMVUtility(Internal)sampleBuffer32BGRATo32RGBA:]在GoogleMobileVision中(GMVUtility + Internal_1a3089c1f18dbb4046735909972b8cb2.o)     “_vImageBuffer_InitWithCGImage”,引自:         + [GMVUtility(Internal)rgbaPixelDataFromCGImage:]在GoogleMobileVision中(GMVUtility + Internal_1a3089c1f18dbb4046735909972b8cb2.o)     “_vImageRotate_ARGB8888”,引自:         + [GMVUtility(内部)rotatePixelData:width:height:bytesPerRow:withAngle:]在GoogleMobileVision中(GMVUtility + Internal_1a3089c1f18dbb4046735909972b8cb2.o)     “_vImageHorizo​​ntalReflect_ARGB8888”,引自:         + [GMVUtility(Internal)flipRGBA8888Horizo​​ntally:width:height:bytesPerRow:]在GoogleMobileVision中(GMVUtility + Internal_1a3089c1f18dbb4046735909972b8cb2.o)     “_vImagePermuteChannels_ARGB8888”,引自:         + [GMVUtility(Internal)permutate:width:height:bytesPerRow:order:] in GoogleMobileVision(GMVUtility + Internal_1a3089c1f18dbb4046735909972b8cb2.o)     “_vImageFlatten_RGBA8888ToRGB888”,引自:         + [GMVUtility(Internal)flattenRGBA8888ToRGB888:width:height:bytesPerRow:]在GoogleMobileVision中(GMVUtility + Internal_1a3089c1f18dbb4046735909972b8cb2.o)   ld:找不到架构x86_64的符号

感谢任何帮助。

2 个答案:

答案 0 :(得分:3)

在Xcode中添加Accelerate.framework作为构建阶段的一部分后,问题得到了解决。

答案 1 :(得分:1)

Firebase框架是静态构建的,因此如果您手动将它们添加到项目中,则不应位于应用程序目标下的xcode中的嵌入式二进制文件下。如果你有它,删除它应该解决问题。