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: 10

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: 10

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: 10

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: 365
Joined: Fri May 06, 2011 7:41 pm
Thumbs Up: 28

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: 10

Next

Return to iOS



Who is online

Users browsing this forum: No registered users and 2 guests

cron