Hi,
I have recently tried to update to the latest trunk (to be precise rev. 8059 from 6700) and now I am struggling to integrate WebRTC in my app.
I have followed instructions here
http://www.webrtc.org/native-code/ios and was able to build AppRTCDemo app along with all the libraries it needs. I was also able to run it on device. I did it for armv7.
After that I inspected AppRTCDemo target in .gyp file and tried to add libjingle_peerconnection_objc.a and libjingle_peerconnection.a to my app. This approach failed on linking step.
Then I added all the necessary libraries from out_ios/Debug-iphoneos to my project and was finally able to build my app.
Now I get crashes like this:
* thread #9: tid = 0xb3085, 0x01000000 MyApp, stop reason = EXC_BAD_ACCESS (code=2, address=0x1000000)
frame #0: 0x01000000 MyApp
* frame #1: 0x007652d0 MyApp`rtc::MessageQueue::Get(this=0x1558f370, pmsg=0x048eaf5c, cmsWait=-1, process_io=true) + 1392 at messagequeue.cc:253
frame #2: 0x007930e4 MyApp`rtc::Thread::ProcessMessages(this=0x1558f370, cmsLoop=-1) + 116 at thread.cc:562
frame #3: 0x00793052 MyApp`rtc::Thread::Run(this=0x1558f370) + 34 at thread.cc:404
frame #4: 0x00792ea6 MyApp`rtc::Thread::PreRun(pv=0x15586f20) + 90 at thread.cc:396
frame #5: 0x2f997e92 libsystem_pthread.dylib`_pthread_body + 138
frame #6: 0x2f997e06 libsystem_pthread.dylib`_pthread_start + 118
when I try to create thread like this from main thread:
rtc::Thread *myWorkerThread = new rtc::Thread();
myWorkerThread->SetName("My_worker_thread", myWorkerThread);
myWorkerThread->Start();
I am not sure if this happens because of some problems in my app or in how I add webrtc to my project or the way I have built webrtc.
Could anyone please share how you work with new releases (>6700) of WebRTC on iOS? Do you manually add built all static libs into project (build phases -> link binary with libraries) or there is a way to create an umbrella library and add only that to project? Did someone have the same problems like I do?