解决报错Undefined symbols for architecture arm64

解决xcode编译报错:
Undefined symbols for architecture arm64:
"OBJC_CLASS$_ALAssetsLibrary", referenced from:
objc-class-ref in opencv2(cap_ios_video_camera.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

需要注意:
报错提示:OBJC_CLASS$_ALAssetsLibrary

解决方法:
在项目的TARGET的Build Phases中导入 AssetsLibrary.framework 即可编译成功

如下图:


解决方法.png

你可能感兴趣的:(解决报错Undefined symbols for architecture arm64)