Bazel-iOS Error 系列 (一) Could not

2021-05-18  本文已影响0人  西博尔

错误详情

Details

Could not launch “xxx”
Domain: IDEDebugSessionErrorDomain
Code: 3
Failure Reason: No such file or directory (/private/var/containers/Bundle/Application/A7371FEF-1285-49EB-B767-007B890988F1/xxx.app)
User Info: {
   DVTRadarComponentKey = 855031;
   RawUnderlyingErrorMessage = "No such file or directory (/private/var/containers/Bundle/Application/A7371FEF-1285-49EB-B767-007B890988F1/xxx.app)";
}
--
System Information

macOS Version 11.2.3 (Build 20D91)
Xcode 12.5 (18205) (Build 12E262)
Timestamp: 2021-05-18T19:20:07+08:00

错误现象

Bazel iPhone真机编译调试 , 可以编译通过, 安装成功, 但是最后报错
image.png

我的BUILD

ios_application(
    name = "universal",
    bundle_id = "xx.xxxx.xxxx",
    families = [
        "iphone",
        "ipad",
    ],
    minimum_os_version = "9.0",
    infoplists = [":xxx/Info.plist"],
    visibility = ["//visibility:public"],
    provisioning_profile = "App_custom.mobileprovision",

    deps = [
        ":xxx_lib",
    ],
)
官网配置一样

但是没法真机调试

多番尝试发现
image.png
xcode此处配置和BUILD文件不一样 , 改成和BUILD文件的BundleID一样就可以正常安装调试了
上一篇下一篇

猜你喜欢

热点阅读