【问题标题】:gcloud crashed (AttributeError): 'NoneType' object has no attribute 'androidModelId' running XCTests on Firebase Test Labgcloud 崩溃(AttributeError):“NoneType”对象没有属性“androidModelId”在 Firebase 测试实验室上运行 XCTests
【发布时间】:2019-06-28 14:38:22
【问题描述】:

按照Test with the gcloud CLI on iOS 的说明,在构建我的测试应用程序并将所有测试数据保存在 zip 文件中后,我执行命令

gcloud firebase test ios run \
    --test MyTests.zip \
    --device model=iphone7,version=12.1,locale=it_IT,orientation=portrait

但是,在 Firebase 上成功上传测试后,我收到此错误:

ERROR: gcloud crashed (AttributeError): 
'NoneType' object has no attribute 'androidModelId'

似乎gcloud 正在寻找'androidModelId' 属性(但由于我在iOS 上运行测试,所以找不到它...

【问题讨论】:

    标签: ios gcloud xctest firebase-test-lab


    【解决方案1】:

    当 gcloud 想要向您报告设备尺寸无效时,这似乎是一个错误。在您的情况下, iphone7:12.1 不是受支持的设备。 iphone7:12.0 会。请运行

    gcloud firebase test ios models list
    

    查看支持的设备和版本列表。

    这应该可行:

    gcloud firebase test ios run \
        --test MyTests.zip \
        --device model=iphone7,version=12.0,locale=it_IT,orientation=portrait
    

    【讨论】:

      【解决方案2】:

      这应该会在 2019 年 7 月 9 日星期二的下一个 gcloud 版本中得到修复。

      【讨论】:

        猜你喜欢
        • 2019-11-23
        • 1970-01-01
        • 2019-11-23
        • 2021-07-31
        • 2020-08-24
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-09-14
        相关资源
        最近更新 更多