-
Notifications
You must be signed in to change notification settings - Fork 3k
Description
Hello,
I can run the application on device and simulator perfectly. But when I am trying Archive the application I am getting following error.
Undefined symbols for architecture armv7:
"OBJC_CLASS$_MLKTextLine", referenced from:
objc-class-ref in OCRViewController.o
"OBJC_CLASS$_MLKTextBlock", referenced from:
objc-class-ref in OCRViewController.o
"OBJC_CLASS$_MLKTextElement", referenced from:
objc-class-ref in OCRViewController.o
"OBJC_CLASS$_MLKTextRecognizer", referenced from:
objc-class-ref in OCRViewController.o
"OBJC_CLASS$_MLKVisionImage", referenced from:
objc-class-ref in OCRViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Solutions I have Tried:
-
Active Architecture Only in pod and in Project->target
Active Architecture Only -> set Yes in Build Settings -
Link Search Libraries
Build Settings -> Link Search Path -> Add $(inherited) -
Framework Search Path
In build Settings -> Framework Search path -> Add $(inherited) -
Header Search Path
In build settings -> header Search path -> Add $(inherited) -
Deintegrate Cocoapods and re install again.
-
Cocoapods update
-
Pod file update
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
end
end
end
Any help would be much appreciated.
Thanks,