After following all of the necessary steps on the TestFairy website to integrate the TestFairy SDK into iOS, I've run into a problem. I dragged the files into my project, I've checked "Copy files if needed", I've created the Bridging Header required to import TestFairy.
The app compiles and runs on the simulator but the error occurs when I try to archive the application.
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
}
The error message is "Use of unresolved identifier 'TestFairy'".
This error occurs because of your bundle could not find your file so please select
TestFairy.m
file and check its target. Its target is selected for your project. If not then check it and select. then run again.check below image--> Right side target is selected