小编Aru*_*run的帖子

如何在 UITesting swift 4 iOS 中获取应用程序名称

我试图在 UITesting 中获取我的应用程序名称。我试过下面的代码:

let appName = Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName") as! String
Run Code Online (Sandbox Code Playgroud)

但它给了我零值结果。

iphone ios xcode-ui-testing

5
推荐指数
2
解决办法
1183
查看次数

标签 统计

ios ×1

iphone ×1

xcode-ui-testing ×1