ios build error duplicate symbol _main
Options
in Photon Voice
Hello. Im having trouble making an ios build with pun2 and photon voice 2.
the problem is that when i build it, xcode throws an error "duplicate symbol _main"
well it turns out that the webrtc-audio.a library is having a class named "click_annotate.cc" that contains the method (int main()" and is conflicting with ios's main method.
https://wing1.cs.ucla.edu/gitlab/tan/webrtc/blob/3d7a5007a72134ca8c066d9a3be52ef052e75b85/webrtc/modules/audio_processing/transient/click_annotate.cc
here are 2 screenshots from my xcode project
https://drive.google.com/file/d/1GpDCREOlg2zXb3MCJT1868JldT-E6lki/view?usp=sharing
https://drive.google.com/file/d/18j184aEy2FJM0YNhpj39oREOk1unuTZZ/view?usp=sharing
what i tried is to make an empty unity project and import photon voice plugin and build for ios. It seemlesly runs on ios....i was confused that why its working here? so then i copied the complete "Photon" folder from my new project and then replaced it in my working project. but the xcode error still persists even if i export a fresh xcode project
can somebody help me out in this issue?
the problem is that when i build it, xcode throws an error "duplicate symbol _main"
well it turns out that the webrtc-audio.a library is having a class named "click_annotate.cc" that contains the method (int main()" and is conflicting with ios's main method.
https://wing1.cs.ucla.edu/gitlab/tan/webrtc/blob/3d7a5007a72134ca8c066d9a3be52ef052e75b85/webrtc/modules/audio_processing/transient/click_annotate.cc
here are 2 screenshots from my xcode project
https://drive.google.com/file/d/1GpDCREOlg2zXb3MCJT1868JldT-E6lki/view?usp=sharing
https://drive.google.com/file/d/18j184aEy2FJM0YNhpj39oREOk1unuTZZ/view?usp=sharing
what i tried is to make an empty unity project and import photon voice plugin and build for ios. It seemlesly runs on ios....i was confused that why its working here? so then i copied the complete "Photon" folder from my new project and then replaced it in my working project. but the xcode error still persists even if i export a fresh xcode project
can somebody help me out in this issue?
0
Comments
-
Hi @adnanhybrid,
Thank you for choosing Photon!
My colleague @vadim re built the iOS native plugin without the main method.
Could you test it?
Download it here.
of course, the file needs to replace "Assets\Photon\PhotonVoice\PhotonVoiceLibs\iOS\libwebrtc-audio.a"0 -
Thanks @JohnTube
We will test the plugin on our next working day and provide you feedback1 -
@JohnTube . Thanks for the new library, the build worked fine on ipad. i just noticed that the library was built without bitcode. can you please send me the library with bitcode?
0 -
hey @adnanhybrid
@vadim updated the lib.
redownload form the same Dropbox link and test again.0 -
Thanks for the quick update @JohnTube . But The new library also has no bit code in it...i have to turn off bitcode in my xcode build settings in order to archive the build.
Please send me library WITH bitcode0 -
Please download from https://www.dropbox.com/s/r3dy3s9xbbfmhjf/libwebrtc-audio.a?dl=1
The old link pointed to old lib which I renamed before uploading new one. I did not expect that, sorry.1 -
no worries...i will try the new link now
0 -
thanks for the new library...it worked fine1
-
Hi @adnanhybrid,
I just submitted version 2.13.
It contains the new library which you already have from dropbox.
Thanks for your help and patience.1