open-webrtc-toolkit / owt-client-native

Open WebRTC Toolkit client SDK for native Windows/Linux/iOS applications.
https://01.org/open-webrtc-toolkit
Apache License 2.0
393 stars 181 forks source link

ios When I run scripts/build.py, an error is reported #413

Open DiamoandDog opened 4 years ago

DiamoandDog commented 4 years ago

When I run scripts/build.py, an error is reported,how can I find the cause of the problem? 31599795541_ pic

jianjunz commented 4 years ago

Hi,

Please try the python in depot_tools.

krishnastvSMSC commented 3 years ago

Hello jianjunz,

I am also facing same issue , I tried depot_tools python also still same issue.

Screenshot 2020-11-23 at 6 15 31 PM

Can you help me to resolve this...Thank you

krishnastvSMSC commented 3 years ago

Hello,

How to resolve this please suggest me.. am stuck at building SDK of it.

Thank you

Guolanlan commented 3 years ago

if you system is macos 11,then, find_sdk.py,modify a point, path : src/build/mac/find_sdk.py find_sdk.py,
in line 73, sdks = [re.findall('^MacOSX(11.\d+).sdk$', s) for s in os.listdir(sdk_dir)]

Guolanlan commented 3 years ago

https://blog.csdn.net/momo0853/article/details/109723741 you can refer to this link

DiamoandDog commented 3 years ago

Talk about my solution to this problem at the time. When I switched the python version to 2.7, it was fine. I don’t know if everyone’s problems are the same, but this is how I solved it, as a reference

DiamoandDog commented 3 years ago

https://blog.csdn.net/momo0853/article/details/109723741 you can refer to this link

Thank you for the method, I think someone will use it!

Guolanlan commented 3 years ago

Did you compile successfully?

Guolanlan commented 3 years ago

I compiled it many times, but I still got an error when I ran it in Demo.

DiamoandDog commented 3 years ago

Did you compile successfully? Yes, version 4.3

Guolanlan commented 3 years ago

Do you mind adding WeChat? Ask for advice,

DiamoandDog commented 3 years ago

It’s a pity that I may not be able to give you some suggestions. It’s been a long time since I didn’t organize the whole process at the time. I may have forgotten a lot of things, but you can give me your email and I will send the compiled owt you

Guolanlan commented 3 years ago

1454926185@qq.com thanks!!!!!!!

Guolanlan commented 3 years ago

你跑Demo是OK的吗?我加在Demo里,初始化ConferenceClient 就崩溃了,

OWTConferenceClientConfiguration config=[[OWTConferenceClientConfiguration alloc]init]; NSArray ice=[[NSArray alloc]initWithObjects:[[RTCIceServer alloc]initWithURLStrings:[[NSArray alloc]initWithObjects:@"stun:61.152.239.47:3478", nil]], nil]; config.rtcConfiguration=[[RTCConfiguration alloc] init]; // config.rtcConfiguration.iceServers=ice; _conferenceClient=[[OWTConferenceClient alloc] initWithConfiguration:config]; _conferenceClient.delegate=self;

DiamoandDog commented 3 years ago

你跑Demo是OK的吗?我加在Demo里,初始化ConferenceClient 就崩溃了,

OWTConferenceClientConfiguration config=[[OWTConferenceClientConfiguration alloc]init]; NSArray ice=[[NSArray alloc]initWithObjects:[[RTCIceServer alloc]initWithURLStrings:[[NSArray alloc]initWithObjects:@"stun:61.152.239.47:3478", nil]], nil]; config.rtcConfiguration=[[RTCConfiguration alloc] init]; // config.rtcConfiguration.iceServers=ice; _conferenceClient=[[OWTConferenceClient alloc] initWithConfiguration:config]; _conferenceClient.delegate=self;

当然可以,你这里config.rtcConfiguration.iceServers=ice;这一行不注释会怎样

Guolanlan commented 3 years ago

不注释也不行,还是崩溃了,是不是我少了 那两个静态库呢?libsioclient_tls_no_verification.a、libsioclient_tls.a我本地已经有libsioclient.a 了

Guolanlan commented 3 years ago

https://user-images.githubusercontent.com/10527103/104809269-0c675700-5827-11eb-9197-c887f8c5ed8e.png