Импортируйте GoogleMLKit BarcodeScanning by Pod, затем выполните сбой сборки модульного теста
Импорт GoogleMLKit/BarcodeScanning by Pod в проект iOS
pod 'GoogleMLKit/BarcodeScanning'
Затем сбой сборки Run Unit Test.
Undefined symbols for architecture x86_64:
"_OBJC_METACLASS_$_MLKBarcode", referenced from:
_OBJC_METACLASS_$__TtCFC12invoiceTests25ScanVipCardViewModelTests83testWhen_Not_Support_Barcode_Format_PassValueToEditVipCardViewController_Should_NilFzT_T_L_11FakeBarcode in ScanVipCardViewModelTests.o
_OBJC_METACLASS_$__TtCFC12invoiceTests25ScanVipCardViewModelTests87testWhen_Not_Support_Barcode_Format_PassValueToEditVipCardViewController_Should_CorrectFzT_T_L_11FakeBarcode in ScanVipCardViewModelTests.o
ld: symbol(s) not found for architecture x86_64