UI测试中通用字符名称不完整 [英] Incomplete universal character name in UI Testing

查看:72
本文介绍了UI测试中通用字符名称不完整的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Xcode 7的新功能:UI测试. 记录交互后,Xcode会自动生成代码:

I am using Xcode 7's new feature : UI Testing. After recording the interaction, Xcode generated the code automatically :

- (void)testDoubleTapToolBarItem {
    [[[XCUIApplication alloc] init].tabBars.buttons[@"\U5173\U6ce8"] doubleTap];
                                                    ~~~~~~~~~~~~~~~~
}

但是,警告也显示出来了.有人知道如何解决这个问题吗?

However, warning showed as well. Any one know how to fix this?

通用字符名称不完整

Incomplete universal character name


自Xcode 7.0 GM以来,这似乎是一个错误

推荐答案

您可以使用以下变通办法,因为这似乎是xcode中的错误:

You can use the following workaround as this seems to be a bug in xcode:

将所有 \ U 替换为 \ u 而且应该可以.

replace all \U to \u and it should work.

这篇关于UI测试中通用字符名称不完整的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆