Getting a linker error on my swift project on installing MobileVLCKit via pods.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_VLCMediaPlayer", referenced from:
objc-class-ref in StreamingController.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
To solve apple-linker error after previous step BuildSettings ->'EnableBitcode = No'
In Bridging-Header file, do
#import <MobileVLCKit/MobileVLCKit.h>
In 'BuildSettings -> other_linker_flags' also, this MobileVLCKit framework is not showing, though I can see 'MobileVLCKit' folder inside the 'Pods' folder
EDIT
I was able to remove this error and make 'MobileVLCKit' to be found by doing these steps:
- In Build_Settings -> Other_Linker_Flags, add: -framework "MobileVLCKit"
- In Build_Settings -> Other_Linker_Flags, add: -l"bz2"
- In Build_Settings -> Other_Linker_Flags, add: -l"iconv"
But then these fixes generated other Linker errors from other framework 'libavsobjc.stripped.a' used in AVSLibrary framework which is used in app for some other purpose.
I want both Vlc and AVSLibrary should co-exist. Any ideas ?