1

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

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”,引用自:+[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 ) "_vImageHorizo​​ntalReflect_ARGB8888", referenced from: +[GMVUtility(Internal) flipRGBA8888Horizo​​ntally:width:height:bytesPerRow:] in GoogleMobileVision(GMVUtility+Internal_1a3089c1f18dbb4046735909972b8cb2.o) "_vImagePermuteChannels_ARGB8888", referenced from: +[GMVUtility(Internal) permutate:width:height :bytesPerRow:order:] 在 GoogleMobileVision(GMVUtility+Internal_1a3089c1f18dbb4046735909972b8cb2.o) "_vImageFlatten_RGBA8888ToRGB888",引用自:+[GMVUtility(Internal) flattenRGBA8888ToRGB888:width:height:bytesPerRow:] in GoogleMobileVision(GMVUtility+Internal_1a3089c1f18dbb4046735909972b8cb2.o) ld:未找到架构 x86_64 的符号

任何帮助表示赞赏。

4

2 回答 2

4

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

于 2018-05-30T08:51:15.720 回答
2

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

于 2018-05-21T15:25:04.903 回答