Skip to content

Linker error showing on installing MobileVLCKit via pods in my project

Getting a linker error on my swift project on installing MobileVLCKit via pods.

Undefined symbols for architecture x86_64:
      "_OBJC_CLASS_$_VLCTime", referenced from:
          objc-class-ref in OpusPlayViewController.o
      "_OBJC_CLASS_$_VLCMedia", referenced from:
          objc-class-ref in OpusPlayViewController.o
      "_OBJC_CLASS_$_VLCMediaPlayer", referenced from:
          objc-class-ref in OpusPlayViewController.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

I did the following steps

To solve errors on building project after pod install of Vlckit In Build-Phases -> Link Binaries -> libstdc++.6.tbd

  1. To solve apple-linker error after previous step BuildSettings ->'EnableBitcode = No'
  2. In Bridging-Header file, do #import <MobileVLCKit/MobileVLCKit.h>
  3. In 'BuildSettings -> other_linker_flags' also, this MobileVLCKit framework is not showing, though I can see 'MobileVLCKit' folder inside the 'Pods' folder
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information