Architecture & linker error in WebRTC IOS sdk

Ask questions about the iOS API here

Architecture & linker error in WebRTC IOS sdk

Postby Guest-oyszlcxtlf » Thu Nov 15, 2012 4:37 pm

Hello

I'm working for VideoChat app. for IOS. And It's working fine for Old OpenTok sdk, but when I replace latest WebRTC IOS sdk in my Xcode project. I have deleted old framework and bundle from xcode project folder and added new one for WebRTC sdk. I received so many errors like:


ld: warning: duplicate symbol __ZN7cricket22DeviceManagerInterface18kDefaultDeviceNameE originally in /Users/developer/Desktop/VideoCall_15nov/Opentok.framework/Opentok(devicemanager.o) now lazily loaded from /Users/developer/Desktop/VideoCall_15nov/Opentok.framework/Opentok(dummydevicemanager.o)
Undefined symbols for architecture armv7:
"_objc_setProperty_nonatomic", referenced from:
-[OTWebRtcCapture setCaptureSession:] in Opentok(video_capture_ios-A2EFFA6292F27C8E.o)
-[OTWebRtcCapture setVideoInput:] in Opentok(video_capture_ios-A2EFFA6292F27C8E.o)
-[OTWebRtcCapture setVideoOutput:] in Opentok(video_capture_ios-A2EFFA6292F27C8E.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)


I have tried to resolve them by Build Settings in Xcode project,but unable to get the solution for this. Please help me on this and provide me solution ASAP.

Thanks In advance.
Was this post helpful? (0)
Guest-oyszlcxtlf
 
Posts: 11
Joined: Thu Nov 15, 2012 4:25 pm
Thumbs Up: 0

Re: Architecture & linker error in WebRTC IOS sdk

Postby don » Thu Nov 15, 2012 4:45 pm

Are you using any additional third party libraries or linker flags (-objc -all_load, etc)?
Was this post helpful? (0)
don
 
Posts: 148
Joined: Wed Dec 14, 2011 1:45 pm
Thumbs Up: 11

Re: Architecture & linker error in WebRTC IOS sdk

Postby Guest-oyszlcxtlf » Thu Nov 15, 2012 5:36 pm

No I have not used any third party library. Just using all frameworks as you described to implement IOS sdk.
Was this post helpful? (0)
Guest-oyszlcxtlf
 
Posts: 11
Joined: Thu Nov 15, 2012 4:25 pm
Thumbs Up: 0

Re: Architecture & linker error in WebRTC IOS sdk

Postby don » Thu Nov 15, 2012 8:07 pm

I assume you're running the latest from the opentok-ios-sdk-webrtc project on github?

Can you try pulling the HelloWorld tutorial and using the WebRTC framework to make sure it's not a config problem?
There are instructions in the docs on how to do that.

Sorry I'm not by my computer to link you to it.
Was this post helpful? (0)
don
 
Posts: 148
Joined: Wed Dec 14, 2011 1:45 pm
Thumbs Up: 11

Re: Architecture & linker error in WebRTC IOS sdk

Postby Guest-oyszlcxtlf » Fri Nov 16, 2012 10:26 am

Yes I'm using latest ios sdk.

Also I have tried Hello World tutorial from https://github.com/opentok/OpenTok-iOS-Hello-World. but every time it shows opentok framework error.I have checked there is framework available in project folder, It's seems like some files are missing during download.

I followed instruction from your docs and try to resolve with my efforts but i think there is problem comes from opentok framework.
Was this post helpful? (0)
Guest-oyszlcxtlf
 
Posts: 11
Joined: Thu Nov 15, 2012 4:25 pm
Thumbs Up: 0

Re: Architecture & linker error in WebRTC IOS sdk

Postby Guest-oyszlcxtlf » Mon Nov 19, 2012 8:45 am

Hello,

Hope you are doing well.

Have you found any solution of my issues. I was just waiting for your response.
Was this post helpful? (0)
Guest-oyszlcxtlf
 
Posts: 11
Joined: Thu Nov 15, 2012 4:25 pm
Thumbs Up: 0

Re: Architecture & linker error in WebRTC IOS sdk

Postby don » Mon Nov 19, 2012 9:14 am

I just did this myself (used the webrtc framework in the hello world app) and it built just fine. Are you sure you're doing this with a clean project and framework from github? What are the steps you're taking? Screenshots?
Was this post helpful? (0)
don
 
Posts: 148
Joined: Wed Dec 14, 2011 1:45 pm
Thumbs Up: 11

Re: Architecture & linker error in WebRTC IOS sdk

Postby Guest-oyszlcxtlf » Mon Nov 19, 2012 7:03 pm

Screen Shot 2012-11-20 at 12.01.27 AM.png
See opentok framework icon is that correct.
Hello,

Yes it would be better if you send me Zip of Framework. As I said earlier framework is not properly downloading from your github. I have downloaded it so many times from github but when I execute it on Xcode it gives <Opentok/Opentok.h> file not found error. even Opentok.framework is available in project folder. you can see screen shot of framework icon and i think its wrong.

so if you zip me your hello-world on mail then may be my issue will resolve. Also I have downloaded your "OpenTok-iOS-Basic-Tutorial-master" tutorial for Basic. In this example all files of framework is available but when I execute it then same issues appear and to resolving them i have posted here.

Thanks.
Was this post helpful? (0)
Attachments
Screen Shot 2012-11-20 at 4.08.37 AM.png
Screen Shot 2012-11-20 at 12.13.32 AM.png
Error
Screen Shot 2012-11-19 at 11.59.53 PM.png
Github
Guest-oyszlcxtlf
 
Posts: 11
Joined: Thu Nov 15, 2012 4:25 pm
Thumbs Up: 0

Re: Architecture & linker error in WebRTC IOS sdk

Postby charley » Mon Nov 19, 2012 10:52 pm

That linker warning right before the undefined symbol errors is the culprit I'd recommend looking at. Try running the application on an iOS device, as ld appears to be unable to find i386 symbols in that framework.
Was this post helpful? (0)
charley
 
Posts: 418
Joined: Fri May 06, 2011 7:41 pm
Thumbs Up: 33

Re: Architecture & linker error in WebRTC IOS sdk

Postby don » Mon Nov 19, 2012 11:40 pm

Ah yes, the screen shots helped :)

You're targeting the simulator. We don't support the simulator yet in the WebRTC framework yet. That's on the long list of todos for us and we'll get around to it :)

In the meantime you can refer here for any other known issues in the WebRTC framework:

https://github.com/opentok/opentok-ios- ... own-issues
Was this post helpful? (0)
don
 
Posts: 148
Joined: Wed Dec 14, 2011 1:45 pm
Thumbs Up: 11

Re: Architecture & linker error in WebRTC IOS sdk

Postby Guest-oyszlcxtlf » Tue Nov 20, 2012 9:51 am

Thanks.

I have tried it on devices and after that i have posted my errors here. this errors are occur when I execute on devices. But I'll check one more time.
Was this post helpful? (0)
Guest-oyszlcxtlf
 
Posts: 11
Joined: Thu Nov 15, 2012 4:25 pm
Thumbs Up: 0

Re: Architecture & linker error in WebRTC IOS sdk

Postby Guest-oyszlcxtlf » Wed Nov 21, 2012 6:34 pm

I have tried again. and execute hello world app. on my Iphone device. Getting same webRTC errors.
Was this post helpful? (0)
Guest-oyszlcxtlf
 
Posts: 11
Joined: Thu Nov 15, 2012 4:25 pm
Thumbs Up: 0

Re: Architecture & linker error in WebRTC IOS sdk

Postby don » Mon Nov 26, 2012 8:35 am

Can you post a screen shot of it failing when you're targeting the iPhone?
Was this post helpful? (0)
don
 
Posts: 148
Joined: Wed Dec 14, 2011 1:45 pm
Thumbs Up: 11

Re: Architecture & linker error in WebRTC IOS sdk

Postby Guest-oyszlcxtlf » Wed Nov 28, 2012 7:06 pm

Can you please let me know How can i get a fresh copy of OpenTok framework for webrtc sdk. I have tried it to download from github by "HelloWorld" and "Basic", but every time some files are missing during download from github.

It would be better if you send me fresh copy of framework via mail or provide me direct link by where I can get complete copy of framework.
Was this post helpful? (0)
Guest-oyszlcxtlf
 
Posts: 11
Joined: Thu Nov 15, 2012 4:25 pm
Thumbs Up: 0

Re: Architecture & linker error in WebRTC IOS sdk

Postby charley » Wed Nov 28, 2012 7:26 pm

Be sure to clone those repositories with --recursive to pick up git submodules attached to the projects.
Was this post helpful? (0)
charley
 
Posts: 418
Joined: Fri May 06, 2011 7:41 pm
Thumbs Up: 33

Re: Architecture & linker error in WebRTC IOS sdk

Postby don » Thu Nov 29, 2012 2:35 am

Please keep in mind that doing a --recursive pull on the HelloWorld or BasicTutorial demos will pull the v1 (non-webrtc) version of the OpenTok Framework.

If you want to use WebRTC, grab this repo: https://github.com/opentok/opentok-ios-sdk-webrtc

You'll just need to replace the Framework that gets pulled down if you do a --recursive on the demo app.

Or follow these instructions to setup the Framework in your XCode project:
http://www.tokbox.com/opentok/ios/docs/ ... g_iOS.html
Was this post helpful? (0)
don
 
Posts: 148
Joined: Wed Dec 14, 2011 1:45 pm
Thumbs Up: 11


Return to iOS (Native)



Who is online

Users browsing this forum: javed_540 and 1 guest

cron