Errors building project after embedding MobileRTCScreenshare.framework

MobileRTCScreenshare.framework produces 56+ errors preventing me from building the app

Undefined symbols for architecture arm64:
“typeinfo for std::__1::ios_base”, referenced from:
l878 in MobileRTCScreenShare
“vtable for __cxxabiv1::__class_type_info”, referenced from:
l869 in MobileRTCScreenShare
l865 in MobileRTCScreenShare
l868 in MobileRTCScreenShare
l885 in MobileRTCScreenShare
l889 in MobileRTCScreenShare
l885 in MobileRTCScreenShare
l889 in MobileRTCScreenShare
…and so on…

Which version?

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. On the newly added Broadcast Upload Extension, drag the MobileRTCScreenshare.framework to the “Frameworks and Libraries” and change to “Do not embed” then try to build the project

btw I already added the “MobileRTC.framework” on the main project and it works perfectly fine (can join and create meetings etc). The problem shows when I try to implement the screenshare feature

This is a Swift project


Smartphone (please complete the following information):

  • Device: iPhone 12 Pro
  • OS: iOS 14.3
  • Version ???
    it doesnt matter coz the project doest actually build because of the errors

this is the error produced

Hey @luna.salesforce,

Thanks for using the dev forum!

The screen share framework relies on some C++ libraries. If you are using Swift, you need to add a linker flag to your build settings to be able to link the C++ libraries.

Navigate to your project file -> Build Settings -> Search for “Other linker flags” -> Add “-lc++”

Let me know if that works.

Hmm weird that this step is nowhere in the instructions… but this solved it! Thank you so much! Have a great day and Merry Christmas!

1 Like

oops sorry it was written in the later part of the tutorial… my bad!

Hey @luna.salesforce,

No need to apologize! I am glad to hear that it is working now :slight_smile:
Merry Christmas to you too!