I can able to run the code local machine. But running on Jenkins slave is failing with following error:
xcodebuild[3082:4342631] [MT] iPhoneSimulator: Could not launch simulator: -600
xcodebuild: error: Failed to build workspace Myproject with scheme Myproject.
Reason: The operation couldn’t be completed. (OSStatus error -600.) Build step 'Execute shell' marked build as failure.
-----------------script-------------------
xcodebuild \ -workspace Myproject.xcworkspace \ -scheme Myproject \ -sdk iphonesimulator \ -destination 'platform=iOS Simulator,name=iPad Air 2,OS=9.2' \ test