twilio / video-quickstart-ios

Twilio Video Quickstart for iOS
https://www.twilio.com/docs/api/video
MIT License
460 stars 178 forks source link

dyld: Library not loaded: @rpath/TwilioVideo.framework/TwilioVideo #494

Closed cemtu closed 4 years ago

cemtu commented 4 years ago

Hi,

I am trying to use TwilioVideo in the project. I added TwilioVideo with a pod and when I am trying to install to real device(just real device), app crashes with the given error:

dyld: Library not loaded: @rpath/TwilioVideo.framework/TwilioVideo

What I tried so far:

Every time error does not fixed.

Then I created different project with using different dependencies. In that dependencies I got the same error but I tried above methods and the methods fixed the issue.

When I delete TwilioVideo, problem gone but I need to use TwilioVideo.

piyushtank commented 4 years ago

@BayCem This sounds like either library is not copied properly or not available at the location it expects. Can you try again with following the instructions on how to add TwilioVideo library in your ios xcode proejct? Thanks.

cemtu commented 4 years ago

Thanks for reply @piyushtank. I was installing TwilioVideo with using Cocoapods. Right now, I tried installing TwilioVideo manually from instructions.

Finally, I plug the iPhone, and still I am getting error. The error states that:

ld: framework not found TwilioVideo
clang: error: linker command failed with exit code 1 (use -v to see invocation)
cemtu commented 4 years ago

Still waiting, still not solved. @piyushtank

piyushtank commented 4 years ago

@BayCem Can you make sure the Xcode project has the TwilioVideo framework in embedded framework section.

Screen Shot 2020-05-28 at 10 27 59 AM

Make sure, you do "copy and save" when you pull TwilioVideo.framework in to your project.

If it still doesn't work, try with some other framework other than TwilioVideo.framework and see if that works.

cemtu commented 4 years ago

@piyushtank, thank you for reply. I was added into embeded section but somehow it does not working. After that, I deleted twiliovideo.framework and installed as a pod again at this time somehow it's start working.

jimmycooks9 commented 2 years ago

@piyushtank

I am getting the same issue...

I am adding TwilioVideo Swift Package into a framework. Then adding the framework into my main target via linking.. it works for every other framework such as Stripe, Firebase.. but not Twilio.

How can I achieve this with Twilio?