Tried to run app on iPhone using my created own custom pod lib. Podspecs as below,
s.ios.deployment_target = '10.0' s.source_files = 'Classes/**/*.swift' s.swift_version = '5.0' s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' } s.dependency 'GoogleMLKit/BarcodeScanning', '8.0.0' s.dependency 'GoogleMLKit/ObjectDetection', '8.0.0' s.dependency 'GoogleMLKit/ObjectDetectionCustom', '8.0.0' s.dependency 'GoogleMLKit/FaceDetection', '8.0.0' s.dependency 'GoogleMLKit/ImageLabeling', '8.0.0' s.dependency 'GoogleMLKit/ImageLabelingCustom', '8.0.0' s.dependency 'GoogleMLKit/PoseDetection', '8.0.0' s.dependency 'GoogleMLKit/PoseDetectionAccurate', '8.0.0' s.dependency 'GoogleMLKit/SegmentationSelfie', '8.0.0' s.dependency 'GoogleMLKit/TextRecognition', '8.0.0' s.dependency 'GoogleMLKit/TextRecognitionChinese', '8.0.0' s.dependency 'GoogleMLKit/TextRecognitionDevanagari', '8.0.0' s.dependency 'GoogleMLKit/TextRecognitionJapanese', '8.0.0' s.dependency 'GoogleMLKit/TextRecognitionKorean', '8.0.0'
Install pod lib in my application,
use_frameworks!platform :ios, '17.5'target 'QRScannerliberary_Example' do pod 'QRScannerliberary', :path => '../directoryPath'
After installing pod successfully and all my classes from pod library is getting into pod of the application. But when I tried to run application I getting following error,
ld: warning: Could not find or use auto-linked framework 'CoreAudioTypes': framework 'CoreAudioTypes' not found Undefined symbols for architecture arm64:"_OBJC_CLASS_$_MLKBarcode", referenced from: in PFSDK.o"_OBJC_CLASS_$_MLKBarcodeScanner", referenced from: in VideoDataOutputSampleBufferDelegate.o"_OBJC_CLASS_$_MLKBarcodeScannerOptions", referenced from: in VideoDataOutputSampleBufferDelegate.o"_OBJC_CLASS_$_MLKObject", referenced from: in VideoDataOutputSampleBufferDelegate.o"_OBJC_CLASS_$_MLKObjectDetector", referenced from: in VideoDataOutputSampleBufferDelegate.o"_OBJC_CLASS_$_MLKObjectDetectorOptions", referenced from: in VideoDataOutputSampleBufferDelegate.o"_OBJC_CLASS_$_MLKVisionImage", referenced from: in VideoDataOutputSampleBufferDelegate.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)