在按照 TestFairy 网站上的所有必要步骤将 TestFairy SDK 集成到 iOS 之后,我遇到了一个问题。我将文件拖到我的项目中,我检查了“如果需要复制文件”,我已经创建了导入 TestFairy 所需的桥接头。
该应用程序在模拟器上编译并运行,但是当我尝试归档应用程序时出现错误。
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Check if the user isn't logged in, make the login screen the launcher
if !userDefaultExists(forKey: "username") {
self.window = UIWindow(frame: UIScreen.main.bounds)
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let initialViewController = storyboard.instantiateViewController(withIdentifier: "LoginView")
self.window?.rootViewController = initialViewController
self.window?.makeKeyAndVisible()
}
TestFairy.begin(appToken)
return true
}
错误消息是“使用未解析的标识符'TestFairy'”。