Skip to content

Undefined symbols for architecture armv7: "_OBJC_CLASS_$_MLKTextLine" #219

@chitrakhatri-ios

Description

@chitrakhatri-ios

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:

  1. Active Architecture Only in pod and in Project->target
    Active Architecture Only -> set Yes in Build Settings

  2. Link Search Libraries
    Build Settings -> Link Search Path -> Add $(inherited)

  3. Framework Search Path
    In build Settings -> Framework Search path -> Add $(inherited)

  4. Header Search Path
    In build settings -> header Search path -> Add $(inherited)

  5. Deintegrate Cocoapods and re install again.

  6. Cocoapods update

  7. 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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions