Ping http://localhost:37265/... Ping http://localhost:37265/... Ping http://localhost:37265/... Ping http://localhost:37265/... Ping http://localhost:37265/... Ping http://localhost:37265/... Ping http://localhost:37265/... Ping http://localhost:37265/... Ping http://localhost:37265/... Ping http://localhost:37265/... Timed out..."
I would like to just use the NO_LAUNCH=1 option from Jenkins (I noticed that a lot of other people have had problems launching the simulator from jenkins) but I don't know how to start my application inside the simulator from the command line, is there such an option?
Thanks,
Ru
'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone Simulator' -SimulateApplication /pathtomyapp/MyApp.app
The problem was that jenkins installer on Mac create Jenkins user, and by default add launching script to LaunchDaemons directory.
In that way jenkins was run by daemon and all processes run by jenkins were running in background, because daemons don't have permission/ability to use window manager to paint windows.
FIX: change destination of launching script to LaunchAgents. Everything works there fine, and simulator starts.
Tomek
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>KeepAlive</key> <true/> <key>Label</key> <string>org.jenkins-ci</string> <key>ProgramArguments</key> <array> <string>/usr/bin/java</string> <string>-server</string> <string>-d64</string> <string>-Xms512m</string> <string>-Xmx512m</string> <!-- Use Concurrent GC--> <string>-XX:+UseConcMarkSweepGC</string> <string>-XX:+CMSClassUnloadingEnabled</string> <!-- <string>-XX:+CMSPermGenSweepingEnabled</string> --> <string>-XX:MaxPermSize=256m</string> <!-- <string>-XX:MaxGCPauseMillis=500</string> --> <string>-jar</string> <string>/usr/local/opt/jenkins/libexec/jenkins.war</string> <string>--httpPort=8090</string> </array> <key>RunAtLoad</key> <true/> </dict> </plist>