我试图在 UITesting 中获取我的应用程序名称。我试过下面的代码:
let appName = Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName") as! String
但它给了我零值结果。
iphone ios xcode-ui-testing
ios ×1
iphone ×1
xcode-ui-testing ×1