{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/6786","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/6786/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/6786/comments","events_url":"https://api.github.com/repos/appium/appium/issues/6786/events","html_url":"https://github.com/appium/appium/issues/6786","id":174010814,"number":6786,"title":"iOS 10 Simulator not running using appium 1.6.0 beta 1 XCode 8 beta 6","user":{"login":"codehunterridoy","id":21336873,"avatar_url":"https://avatars.githubusercontent.com/u/21336873?v=3","gravatar_id":"","url":"https://api.github.com/users/codehunterridoy","html_url":"https://github.com/codehunterridoy","followers_url":"https://api.github.com/users/codehunterridoy/followers","following_url":"https://api.github.com/users/codehunterridoy/following{/other_user}","gists_url":"https://api.github.com/users/codehunterridoy/gists{/gist_id}","starred_url":"https://api.github.com/users/codehunterridoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codehunterridoy/subscriptions","organizations_url":"https://api.github.com/users/codehunterridoy/orgs","repos_url":"https://api.github.com/users/codehunterridoy/repos","events_url":"https://api.github.com/users/codehunterridoy/events{/privacy}","received_events_url":"https://api.github.com/users/codehunterridoy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appium/appium/labels/NeedsTriage","name":"NeedsTriage","color":"ededed"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-30T12:52:23Z","updated_at":"2016-10-12T01:59:36Z","closed_at":null,"body":"## The problem\r\n\r\nI am trying to run my ios app (.app) in iOS 10 simulator. but after running appium via command line appium loads the iOS simulator and suddenly crashed without installing my app into the simulator. After reviewing the log i found that \"Error Domain=IDETestOperationsObserverErrorDomain Code=3 \"Test operation was canceled.\" is failed first.\r\n\r\nThe Appium server error is :--\r\n\r\n     [Appium] Creating new XCUITestDriver session\r\n     [Appium] Capabilities:\r\n     [Appium]   app: '/Users/User/Documents/workspace/myApp/resource/myApp.app'\r\n     [Appium]   sendKeyStrategy: 'setValue'\r\n     [Appium]   newCommandTimeout: '9000'\r\n     [Appium]   --no-reset: false\r\n     [Appium]   platformVersion: '10.0'\r\n     [Appium]   browserName: 'iOS'\r\n     [Appium]   platformName: 'iOS'\r\n     [Appium]   deviceName: 'iPad Air 2'\r\n     [Appium]   version: '8.0'\r\n     [Appium]   platform: 'MAC'\r\n     [BaseDriver] Capability 'newCommandTimeout' changed from string ('9000') to integer        (9000). This may cause unexpected behavior\r\n     [BaseDriver] The following capabilities were provided, but are not recognized by appium: --no-reset, version, platform.\r\n     [BaseDriver] Session created with session id: 7854203a-5203-4f6f-9fe9-1df10fe20673\r\n     [debug] [XCUITest] Xcode version set to '8.0'\r\n     [debug] [XCUITest] iOS SDK Version set to '10.0'\r\n     [iOSSim] Constructing iOS simulator for Xcode version 8.0 with udid '14768B9B-0F3A-4081-      9941-6F00D6DA5DCE'\r\n     [XCUITest] Determining device to run tests on: udid: '14768B9B-0F3A-4081-9941-6F00D6DA5DCE', real device: false\r\n     [XCUITest] Safari test requested\r\n     [debug] [iOSLog] Starting iOS 10.0 simulator log capture\r\n     [debug] [iOSLog] System log path: /Users/User/Library/Logs/CoreSimulator/14768B9B-0F3A-4081-9941-6F00D6DA5DCE/system.log\r\n     [XCUITest] Setting up simulator\r\n     [debug] [iOS] No reason to set locale\r\n     [debug] [iOS] No iOS / app preferences to set\r\n     [XCUITest] Simulator with udid '14768B9B-0F3A-4081-9941-6F00D6DA5DCE' not booted.   Booting up now\r\n     [debug] [iOSSim] Killing all iOS Simulators\r\n     [iOSSim] Starting simulator with command: open /Applications/Xcode-     beta.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID 14768B9B-0F3A-4081-9941-6F00D6DA5DCE\r\n     [iOSSim] Tailing simulator logs until we encounter the string \"SMS Plugin initialized\"\r\n     [iOSSim] We will time out after 60000ms\r\n     [debug] [iOSSim] Simulator startup timed out. Continuing anyway.\r\n     [debug] [iOSSim] Waiting an extra 10000ms for the simulator to really finish booting\r\n     [debug] [iOSSim] Done waiting extra time for simulator\r\n     [iOSSim] Simulator booted in 70137ms\r\n     [XCUITest] Using default agent: /usr/local/lib/node_modules/appium/node_modules/appium-  xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj\r\n     [XCUITest] Using default bootstrap: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent\r\n     [XCUITest] Launching WebDriverAgent on the device\r\n     [debug] [XCUITest] Beginning test with command 'xcodebuild -project  /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=14768B9B-0F3A-4081-9941-6F00D6DA5DCE test' in directory   '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'\r\n     [XCUITest] Waiting for WebDriverAgent to start on device\r\n     [debug] [XCUITest] Log file for xcodebuild test: /Users/User/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/9164AEBC-4BC6-4D11-B6B8-88DBA398280A/Session-WebDriverAgentRunner-2016-08-30_181422-1hZd5G.log\r\n     [XCUITest] 2016-08-30 18:14:27.872 xcodebuild[3817:96886] Error Domain=IDETestOperationsObserverErrorDomain Code=3 \"Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/User/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/9164AEBC-4BC6-4D11-B6B8-88DBA398280A/Session-WebDriverAgentRunner-2016-08-30_181422-1hZd5G.log\" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/User/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/9164AEBC-4BC6-4D11-B6B8-88DBA398280A/Session-WebDriverAgentRunner-2016-08-30_181422-1hZd5G.log}\r\n\r\n     [XCUITest] 2016-08-30 18:14:27.873 xcodebuild[3817:97213] Connection peer refused channel request for \"dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface\"; channel canceled <DTXChannel: 0x7f872afdfc10>\r\n\r\n     [XCUITest] \r\nTesting failed:\r\n\r\n     [XCUITest] \t./Scripts/generate_modules.sh: line 15: Modules/module.modulemap:   Permission denied\r\n      ** TEST FAILED **\r\n\r\n\r\n       The following build commands failed:\r\n\tPhaseScriptExecution Generate\\ modules   /Users/User/Library/Developer/Xcode/DerivedData/WebDriverAgent-     brdadhpuduowllgivnnvuygpwhzy/Build/Intermediates/WebDriverAgent.build/Debug-     iphonesimulator/WebDriverAgentLib.build/Script-AD35D0281CF1B37A00870A75.sh\r\n     (1 failure)\r\n\r\n     [XCUITest] xcodebuild exited with code '65' and signal 'null'\r\n     [debug] [XCUITest] xcodebuild failure warrants retry. Retrying...\r\n     [XCUITest] Shutting down WebDriverAgent\r\n     [XCUITest] Simulator log exited with code 'null'\r\n     [XCUITest] Launching WebDriverAgent on the device\r\n     [debug] [XCUITest] Beginning test with command 'xcodebuild -project   /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-     driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination  id=14768B9B-0F3A-4081-9941-6F00D6DA5DCE test' in directory  '/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'\r\n     [XCUITest] Waiting for WebDriverAgent to start on device\r\n     [debug] [XCUITest] Log file for xcodebuild test:   /Users/User/Library/Developer/Xcode/DerivedData/WebDriverAgent- brdadhpuduowllgivnnvuygpwhzy/Logs/Test/007D8FF8-7759-4ABC-A28D-631228541A6B/Session-WebDriverAgentRunner-2016-08-30_181519-GI0cpR.log\r\n     [XCUITest] 2016-08-30 18:15:25.648 xcodebuild[3843:97232] Error   Domain=IDETestOperationsObserverErrorDomain Code=3 \"Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/User/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/007D8FF8-7759-4ABC-A28D-631228541A6B/Session-WebDriverAgentRunner-2016-08-30_181519-GI0cpR.log\" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /Users/User/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/007D8FF8-7759-4ABC-A28D-631228541A6B/Session-WebDriverAgentRunner-2016-08-30_181519-GI0cpR.log}\r\n\r\n     [XCUITest] 2016-08-30 18:15:25.649 xcodebuild[3843:97723] Connection peer refused  channel request for   \"dtxproxy:XCTestManager_IDEInterface:XCTestManager_DaemonConnectionInterface\"; channel    canceled <DTXChannel: 0x7fe1ecab6770>\r\n\r\n     [XCUITest] \r\n     Testing failed:\r\n\r\n[XCUITest] \t./Scripts/generate_modules.sh: line 15: Modules/module.modulemap: Permission    denied\r\n     ** TEST FAILED **\r\n\r\n\r\n       The following build commands failed:\r\n\tPhaseScriptExecution Generate\\ modules  /Users/User/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Build/Intermediates/WebDriverAgent.build/Debug- iphonesimulator/WebDriverAgentLib.build/Script-AD35D0281CF1B37A00870A75.sh\r\n(1 failure)\r\n \r\n     [XCUITest] xcodebuild exited with code '65' and signal 'null'\r\n     [XCUITest] Error: xcodebuild failed with code 65\r\n    at SubProcess.<anonymous> (lib/webdriveragent.js:214:25)\r\n    at emitTwo (events.js:106:13)\r\n    at SubProcess.emit (events.js:191:7)\r\n    at ChildProcess.<anonymous> (lib/teen_process.js:191:14)\r\n    at emitTwo (events.js:106:13)\r\n    at ChildProcess.emit (events.js:191:7)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)\r\n    Error: xcodebuild failed with code 65\r\n    at SubProcess.<anonymous> (lib/webdriveragent.js:214:25)\r\n    at emitTwo (events.js:106:13)\r\n    at SubProcess.emit (events.js:191:7)\r\n    at ChildProcess.<anonymous> (lib/teen_process.js:191:14)\r\n    at emitTwo (events.js:106:13)\r\n    at ChildProcess.emit (events.js:191:7)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)\r\n     [XCUITest] Shutting down WebDriverAgent\r\n     [XCUITest] Simulator log exited with code 'null'\r\n     [debug] [XCUITest] Resetting simulator\r\n     [debug] [XCUITest] Shutting down simulator\r\n     [debug] [iOSSim] Killing all iOS Simulators\r\n     [debug] [iOSSim] Killing simulator timed out. Using killall signal\r\n     [debug] [iOSLog] Stopping iOS log capture\r\n     [MJSONWP] Encountered internal error running command: Error: xcodebuild failed with code   65\r\n    at SubProcess.<anonymous> (lib/webdriveragent.js:214:25)\r\n    at emitTwo (events.js:106:13)\r\n    at SubProcess.emit (events.js:191:7)\r\n    at ChildProcess.<anonymous> (lib/teen_process.js:191:14)\r\n    at emitTwo (events.js:106:13)\r\n    at ChildProcess.emit (events.js:191:7)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)\r\n    [HTTP] <-- POST /wd/hub/session 500 205042 ms - 167 \r\n\r\n## Environment\r\n\r\n* Appium 1.6.0 beta 1\r\n* OS X El Capitan 10.11.5\r\n* Node.js v6.4.0\r\n* iOS 10 simulator\r\n*XCode 8 beta 6\r\n\r\n## Details\r\n\r\nDescribe in more detail the problem you have been experiencing, if necessary.\r\n\r\n## Code To Reproduce Issue [  ]\r\n\r\ni run the appium server by calling  \"appium\" in terminal and i am using java_client 4.1.2 my code is like below \r\n\r\n    DesiredCapabilities capabilities = new DesiredCapabilities();\r\n    capabilities.setCapability(MobileCapabilityType.BROWSER_NAME, \"iOS\");\r\n    capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, \"10.0\");\r\n    capabilities.setCapability(\"automationName\", \"XCUITest\");\r\n    capabilities.setCapability(\"newCommandTimeout\", \"9000\");\r\n    capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, \"iPad Air\");\r\n    capabilities.setCapability(MobileCapabilityType.VERSION, \"8.0\");\r\n    capabilities.setCapability(MobileCapabilityType.PLATFORM,\"Mac\");\r\n    capabilities.setCapability(\"platformName\", \"iOS\");\r\n    capabilities.setCapability(\"sendKeyStrategy\",\"setValue\");\r\n    capabilities.setCapability(\"--no-reset\", false);\r\n    capabilities.setCapability(\"app\", app.getAbsolutePath());\r\n    try {\r\n        AppiumDriver<WebElement> driver = new IOSDriver<WebElement>(new URL(this.getAppiumUrl()), capabilities);\r\n    } catch (MalformedURLException e) {\r\n        e.printStackTrace();\r\n    } catch (Exception e) {\r\n        e.printStackTrace();\r\n    }"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/253098207","html_url":"https://github.com/appium/appium/issues/6786#issuecomment-253098207","issue_url":"https://api.github.com/repos/appium/appium/issues/6786","id":253098207,"user":{"login":"dumplincat","id":6601082,"avatar_url":"https://avatars.githubusercontent.com/u/6601082?v=3","gravatar_id":"","url":"https://api.github.com/users/dumplincat","html_url":"https://github.com/dumplincat","followers_url":"https://api.github.com/users/dumplincat/followers","following_url":"https://api.github.com/users/dumplincat/following{/other_user}","gists_url":"https://api.github.com/users/dumplincat/gists{/gist_id}","starred_url":"https://api.github.com/users/dumplincat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumplincat/subscriptions","organizations_url":"https://api.github.com/users/dumplincat/orgs","repos_url":"https://api.github.com/users/dumplincat/repos","events_url":"https://api.github.com/users/dumplincat/events{/privacy}","received_events_url":"https://api.github.com/users/dumplincat/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T01:59:36Z","updated_at":"2016-10-12T01:59:36Z","body":"[XCUITest] xcodebuild exited with code '127' and signal 'null'\r\n[XCUITest] Error: xcodebuild failed with code 127\r\n    at SubProcess.<anonymous> (lib/webdriveragent.js:294:25)\r\n    at emitTwo (events.js:106:13)\r\n    at SubProcess.emit (events.js:191:7)\r\n    at ChildProcess.<anonymous> (lib/teen_process.js:191:14)\r\n    at emitTwo (events.js:106:13)\r\n    at ChildProcess.emit (events.js:191:7)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)\r\n Error: xcodebuild failed with code 127\r\n    at SubProcess.<anonymous> (lib/webdriveragent.js:294:25)\r\n    at emitTwo (events.js:106:13)\r\n    at SubProcess.emit (events.js:191:7)\r\n    at ChildProcess.<anonymous> (lib/teen_process.js:191:14)\r\n    at emitTwo (events.js:106:13)\r\n    at ChildProcess.emit (events.js:191:7)\r\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)"}}
{"actor":{"display_login":"dumplincat"}}