Bazel-iOS Error 系列 (一) Could not launch “xxx”

错误详情

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一样就可以正常安装调试了

你可能感兴趣的:(Bazel-iOS Error 系列 (一) Could not launch “xxx”)