Okay I think I got it working.
Here are some more details about how to remove xcode command line authorization prompt
What I did was the following:
- Mark jenkins user as admin (unfortunately it seems that there is no other way atm)
- Go to /etc/authorization
- search for key system.privilige.taskport
-
change value of allow-root to true
<key>system.privilege.taskport</key> <dict> <key>allow-root</key> <false/> // change to -> <true> <key>class</key> <string>user</string> <key>comment</key> <string>Used by task_for_pid(...). ... </dict>
Now I am being able to use jenkins to run my UIAutomation-Tests via Command Line Script