mlkit icon indicating copy to clipboard operation
mlkit copied to clipboard

(iOS) Import GoogleMLKit BarcodeScanning by Pod then run unit test build fail

Open AlexanderPan opened this issue 4 years ago • 0 comments

Import GoogleMLKit/BarcodeScanning by Pod to iOS project

pod 'GoogleMLKit/BarcodeScanning'

Then Run Unit Test build fail.

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

AlexanderPan avatar Aug 21 '20 02:08 AlexanderPan