How to build webrtc with ios c objects

I'm trying to create an AppRTCDemom example from google webrtc source code, I follow the readme file, but after trying "gclient runhooks" I get:

"The key_id gyp variable must be explicitly set because there are several code keys or not"

Can someone tell what happened? what is missing here?

Tks

+4
source share
2 answers

The problem is that you have several iOS developer keys. This line is located in the line of the file libjingle_examples.gyp 271 above the inscription.

# Total HACK to give a more informative message when multiple # codesigning keys are present in the default keychain. Ideally # we could pick more intelligently among the keys, but as a # first cut just tell the developer to specify a key identity # explicitly. 'key_id%': (security find-identity -p codesigning -v | grep "iPhone Developer" | awk \'{print $2}\') 

When you run the command directly:

 security find-identity -p codesigning -v | grep "iPhone Developer" | awk '{print $2}' 555XXXX6DA325E6097E5301381XXXXXXD35D620E 315XXXX6B19AD10A0F4567XXXX03B1BXXXXXXXXX 

it lists two dev identifiers, which is the problem, so I edited libjingle_examples.gyp line 271 and added | head -1 | head -1 so that it returns only 1 key, in this case the top or first key. I also double-checked in Xcode to ensure that the top key is my current one.

I have been working in this space for the past few months, and webrtc on iOS is not easy. To help this problem, I added a github repository with a working example iOS application using webrtc.

https://github.com/gandg/webrtc-ios

The site also links to a Google site, so it should be a useful starting point.

+3
source

The Gp encoder solution was only half the fix for me. After making the changes that he recommended, I ran into another similar error in another file:

AssertionError: Multiple Identifier Codes for Identification: iPhone Developer

This statement occurs in the following file:

WebRTC / trunk / tools / scam / pylib / scam / xcode_emulation.py

Strangely, the line after the approval will accept the first code signing identifier in the list so that the solution is as simple as commenting on the statement on line 793. This assumes that you really want to get the first code signing identifier. If not, change the index used in the result array on line 796 to whatever you need.

I ended up writing a blog post with these changes, as well as a few others that you need to get the full build work.

+5
source

Source: https://habr.com/ru/post/1498426/


All Articles