webrtc 编译完成,安装时错误

在成功编译WebRTC后,遇到安装到iOS真机时的bundleid和签名不一致错误。解决方法包括修改bundleid,更新签名证书,并重新执行编译和安装命令,最终实现App的成功安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

历尽千辛万苦,webrtc编译完成。如果能能走到这一步,那么恭喜你,你已经打败99%的人了。最后就是安装到真机上面测试,还有最后一个问题需要解决。

执行安装命令

ideviceinstaller -i out_ios/Debug-iphoneos/AppRTCDemo.app

发生错误:

Install failed. 
Failed to verify code signature

错误日志

ERROR: Install failed. Got error "ApplicationVerificationFailed" with code 0xe8008016: Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.Ufd0uM/extracted/AppRTCDemo.app identifier = com.google.AppRTCDemo type = 4> : 0xe8008016 (Entitlements found that are not permitted by provisioning profile)

这是由于bundleid和签名不一致引起的,如何修改过签名证书,一般回发生这个错误
webrtc 默认的bundleid 为

 com.google.AppRTCDemo

存在这个文件里:

 ./examples/objc/AppRTCDemo/ios/Info.plist

将下面这两行里的com.google.AppRTCDemo改为合适的bundleid

<key>CFBundleIdentifier</key>
  <string>com.google.AppRTCDemo</string>

重新执行脚本生成编译工程:

 webrtc/build/gyp_webrtc

再执行编译 :

ninja -C out_ios/Debug-iphoneos AppRTCDemo

成功编译后执行以下命令安装app:

 ideviceinstaller -i out_ios/Debug-iphoneos/AppRTCDemo.app

若能成功输出:

Uploading AppRTCDemo.app package contents... DONE.
Installing '(null)'
Install: CreatingStagingDirectory (5%)
Install: ExtractingPackage (15%)
Install: InspectingPackage (20%)
Install: TakingInstallLock (20%)
Install: PreflightingApplication (30%)
Install: InstallingEmbeddedProfile (30%)
Install: VerifyingApplication (40%)
Install: CreatingContainer (50%)
Install: InstallingApplication (60%)
Install: PostflightingApplication (70%)
Install: SandboxingApplication (80%)
Install: GeneratingApplicationMap (90%)
Install: Complete

到这里大功告成。
下一节解决Xcode工程问题。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值