Am I creating an iOS application that has some startup scripts before launching ?. More specifically, my launch script is designed to open a terminal and run a command to open Appium (automation application). It works for me on my local machine using the following applescript
set scriptPath to " test.sh" //test.sh is a script that opens appium and runs some tests
tell app "Terminal"
do script scriptPath
end tell
When I create and run my application on my local machine, the script works just fine - it opens a terminal, which then opens appium and runs my automatic test. The problem is that when I try to use Xcode CI to create an assembly (and start automation), the terminal never opens. I looked in console.app and I get the following:
osascript: spawn_via_launchd() failed, errno=5 label=com.apple.Terminal.9008
After a lot of research and digging, I begin to wonder if this is due to the (relatively) new restrictions that the apple placed on daemons with user interface applications (the problem occurs in this thread: NSWorkspace launchApplication: the first time with the root user is not executed )
So is this my problem? Unable to open application from Xcode bot? If someone has not found a way to do this?
Thank!
source
share