错误没有找到移动配置文件

时间:2017-03-13 04:57:34

标签: ios xcode google-chrome webrtc ninja

使用https://webrtc.org/native-code/ios/的构建系统指令时,除了出现以下错误

外,一切正常

Error: no mobile provisioning profile found for

当我xcrun security find-identity -v -p codesigning时,我确实看到了我的证书,无论如何要解决它吗?

$ gn gen out/ios_64 --args='target_os="ios" target_cpu="arm64"'
Done. Made 719 targets from 110 files in 2444ms

$ ninja -C out/ios_64 AppRTCMobile
ninja: Entering directory `out/ios_64'
[2086/2100] CODE SIGNING //webrtc/sdk:r...(//build/toolchain/mac:ios_clang_arm64)
FAILED: WebRTC.framework/WebRTC WebRTC.framework/_CodeSignature/CodeResources WebRTC.framework/embedded.mobileprovision 
python ../../build/config/ios/codesign.py code-sign-bundle -t=iphoneos -i=3F06B010E7BE32A3D212219D02DF440B0F20D6A3 -e=../../build/config/ios/entitlements.plist -b=obj/webrtc/sdk/WebRTC WebRTC.framework
Error: no mobile provisioning profile found for "org.webrtc.WebRTC".
ninja: build stopped: subcommand failed.

2 个答案:

答案 0 :(得分:1)

让我告诉对我有用的步骤

  1. 编辑文件src/examples/objc/AppRTCMobile/ios/Info.plist并使用您自己的套件标识更改值com.google.AppRTCMobile

  2. 编辑文件src/sdk/objc/Framework/Info.plist并使用您自己的包标识符更改值org.webrtc.WebRTC

  3. 我已经在Xcode上创建了包标识符,并且在该构建成功之后

答案 1 :(得分:-4)

BUG - 在$ ninja -C out/ios_64 AppRTCMobile,因为它没有正确准备Xcode