i have installed scan to automate my testing process. i use the process from below website:http://qualitytesting.tumblr.com/post/141771752059/run-a-subset-of-xctest-tests-with-fastlanescan
I have two project one is ios and another is Osx which runs the ios project.
In the osx project, i init the scan file and there i add the scheme of ios project.
when i run the
scan
command from terminal, it runs the ios project successfully.
But if i use below code:
class func shell(args: String...) -> Int32 {
let task = NSTask()
task.launchPath = "/usr/bin/env"
task.arguments = args
task.currentDirectoryPath = "/Users/username/Desktop/Xocde/mainSwiftAutomation/"
task.launch()
task.waitUntilExit()
return task.terminationStatus
}
and than call the function like:
classname.shell("scan")
it shows the below error:
env: scan: No such file or directory
please help.