title: Undefined symbols for architecture x86_64: "_OBJC_METACLASS_$_GMVDetector" referenced from: TextDetector
body: <p>I included Google Firebase MLKit to my project without cocoapods. When I try to build, I'm getting the <code>Undefined symbol</code> error: <a href="https://i.stack.imgur.com/bvxr3.png" rel="nofollow noreferrer">Xcode error image</a> </p>
  
  <pre><code>Undefined symbols for architecture armv7:
    "_OBJC_METACLASS_$_GMVDetector", referenced from:
        l45918 in TextDetector
    "_OBJC_CLASS_$_GMVDetector", referenced from:
        l45917 in TextDetector
    "_OBJC_CLASS_$_GMVFeature", referenced from:
        _OBJC_CLASS_$_GMVTextBlockFeature in TextDetector
        _OBJC_CLASS_$_GMVTextLineFeature in TextDetector
        _OBJC_CLASS_$_GMVTextElementFeature in TextDetector
    "_OBJC_METACLASS_$_GMVFeature", referenced from:
        l45914 in TextDetector
        l45915 in TextDetector
        l45916 in TextDetector
    "_OBJC_CLASS_$_GMVUtility", referenced from:
        objc-class-ref in TextDetector
    "_OBJC_CLASS_$_GMVLogger", referenced from:
        objc-class-ref in TextDetector
    "_GMVFeatureTypeTextLine", referenced from:
        l31298 in TextDetector
    "_GMVDetectorImageOrientation", referenced from:
        l31341 in TextDetector
        l31342 in TextDetector
    "_GMVFeatureTypeTextElement", referenced from:
        l31313 in TextDetector
    "_GMVFeatureTypeTextBlock", referenced from:
        l31279 in TextDetector
  ld: symbol(s) not found for architecture armv7
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  </code></pre>
  
  <p>So far I have tried :</p>
  
  <ol>
  <li>Quitting Xcode and then clean build</li>
  <li>Manual and also drag &amp; drop of frameworks</li>
  <li>Linked all the required resource folders </li>
  <li>Deleting the Xcode temp files </li>
  <li>Set <code>symbols hidden by default</code> under <code>Build Settings</code> to <code>No</code>
  Although the framework <code>TextDetector</code> is linked to the right target.</li>
  </ol>
  
  <p>All these does not seems to work. I followed <a href="https://firebase.google.com/docs/ios/setup#frameworks" rel="nofollow noreferrer">Integrate without CocoaPods</a> for the framework setup.</p>
  
  <p><a href="https://i.stack.imgur.com/ggIE4.png" rel="nofollow noreferrer">Project Structure Image</a> and <a href="https://i.stack.imgur.com/e5S8e.png" rel="nofollow noreferrer">Architecture in Build Settings</a></p>