【问题标题】:Swift UI Testing: Failed to install requested applicationSwift UI 测试:无法安装请求的应用程序
【发布时间】:2020-07-09 19:07:56
【问题描述】:

我记录了一个 UI 测试用例,当我尝试运行它时,我收到以下消息:

"Failed to install the requested application. The bundle identifier of the application could not be determined. Ensure that the application's info.plist contains a value for CFBundleIdentifier."

它出现在模拟器和设备上的测试中。应用程序本身可以在模拟器和设备上完全构建和运行,没有问题。同一台机器上的其他应用程序的 UI 测试也会运行。

UI 测试目标的 info.plist 是我添加 UI 测试目标时创建的默认 info.plist。这可能是什么问题?

【问题讨论】:

    标签: ios swift coded-ui-tests xcode-ui-testing


    【解决方案1】:

    我发现了问题。新目标的名称中有一个特殊字符。我创建了另一个没有特殊字符的目标,并且它可以工作。这似乎是 Xcode 中的一个错误。

    【讨论】:

    • 对于遇到操作问题的其他人,经过数小时的搜索和尝试调试后,我发现我的 Info.plist 被错误命名为 info.plist,这导致了 xcode 10.1 上的上述错误
    猜你喜欢
    • 1970-01-01
    • 2022-01-24
    • 2020-04-07
    • 2018-12-07
    • 2016-11-02
    • 1970-01-01
    • 2020-03-24
    • 2022-09-23
    • 2016-05-06
    相关资源
    最近更新 更多