{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/7481","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/7481/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/7481/comments","events_url":"https://api.github.com/repos/appium/appium/issues/7481/events","html_url":"https://github.com/appium/appium/issues/7481","id":194496288,"number":7481,"title":"Encountering the Issue with Appium WebdriverAgent with real device when Running appium server from terminal with Xcode 8.2","user":{"login":"avinaspandey","id":24463986,"avatar_url":"https://avatars.githubusercontent.com/u/24463986?v=3","gravatar_id":"","url":"https://api.github.com/users/avinaspandey","html_url":"https://github.com/avinaspandey","followers_url":"https://api.github.com/users/avinaspandey/followers","following_url":"https://api.github.com/users/avinaspandey/following{/other_user}","gists_url":"https://api.github.com/users/avinaspandey/gists{/gist_id}","starred_url":"https://api.github.com/users/avinaspandey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avinaspandey/subscriptions","organizations_url":"https://api.github.com/users/avinaspandey/orgs","repos_url":"https://api.github.com/users/avinaspandey/repos","events_url":"https://api.github.com/users/avinaspandey/events{/privacy}","received_events_url":"https://api.github.com/users/avinaspandey/received_events","type":"User","site_admin":false},"labels":[{"id":143265062,"url":"https://api.github.com/repos/appium/appium/labels/NeedsTriage","name":"NeedsTriage","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-09T02:10:43Z","updated_at":"2016-12-09T22:23:02Z","closed_at":null,"body":"## When running my script encountering undeclared identifier response.\r\n\r\n[XCUITest] Waiting for WebDriverAgent to start on device\r\n[debug] [XCUITest] Log file for xcodebuild test: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Logs/Test/0A1C9CAE-F456-41E9-9C61-58DC836069B6/Session-WebDriverAgentRunner-2016-12-08_205930-Pyhm3r.log\r\n[Xcode] 2016-12-08 20:59:31.190 xcodebuild[21877:365356] Error Domain=IDETestOperationsObserverErrorDomain Code=3 \"Test operation was canceled. If you believe this error represents a bug, please attach the log file at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Logs/Test/0A1C9CAE-F456-41E9-9C61-58DC836069B6/Session-WebDriverAgentRunner-2016-12-08_205930-Pyhm3r.log\" UserInfo={NSLocalizedDescription=Test operation was canceled. If you believe this error represents a bug, please attach the log file at /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/DerivedData/WebDriverAgent/Logs/Test/0A1C9CAE-F456-41E9-9C61-58DC836069B6/Session-WebDriverAgentRunner-2016-12-08_205930-Pyhm3r.log}\r\n\r\n[Xcode] \r\nTesting failed:\r\n\r\n[Xcode] \tUse of undeclared identifier 'RouteResponse'\r\n\tUse of undeclared identifier 'response'\r\n\tReceiver type 'RoutingHTTPServer' for instance message is a forward declaration\r\n\tUse of undeclared identifier 'response'\r\n\tUse of undeclared identifier 'response'\r\n** TEST FAILED **\r\n\r\n\r\nThe following build commands failed:\r\n\tCompileC DerivedData/WebDriverAgent/Build/Intermediates/WebDriverAgent.build/Debug-iphoneos/WebDriverAgentLib.build/Objects-normal/arm64/FBHTTPOverUSBServer.o WebDriverAgentLib/Routing/FBHTTPOverUSBServer.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler\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 sub-processes\r\n[XCUITest] Shutting down Logger process (pid 21882)\r\n[XCUITest] System log exited with code '0'\r\n[debug] [XCUITest] Removing WDA application from device\r\n\r\n## Environment\r\n\r\n* Appium version (or git revision) that exhibits the issue: 1.6.1-beta\r\n* Desktop OS/version used to run Appium: Xcode 8.2\r\n* Node.js version (unless using Appium.app|exe): v7.2.0\r\n* Mobile platform/version under test:10.1.1\r\n* Real device or emulator/simulator: Real device (iPhone 6)\r\n* Appium CLI or Appium.app|exe: Appium CLI\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 [ Good To Have ]\r\n\r\n\t  String apkpath=\"//Users//avinash//Documents//IOSIPK//MVP-QA-2.1-10.ipa\";\r\n\t// TODO Auto-generated method stub\r\n\t  AppiumDriver<MobileElement> driver; \r\n\r\n\t  DesiredCapabilities cap=new DesiredCapabilities();\r\n\t  File f= new File(apkpath);\r\n\t  cap.setCapability(MobileCapabilityType.PLATFORM_NAME, \"iOS\");\r\n\t  cap.setCapability(MobileCapabilityType.PLATFORM_VERSION, \"10.1\");\r\n\t  cap.setCapability(MobileCapabilityType.UDID,\"XXXXXXXXXXXXX\");\r\n\t  cap.setCapability(MobileCapabilityType.DEVICE_NAME, \"iPhone 6\"); \r\n\t  cap.setCapability(MobileCapabilityType.AUTOMATION_NAME,\"XCUITest\");\r\n\t  cap.setCapability(\"newCommandTimeout\", \"9000\");\r\n\t  cap.setCapability(MobileCapabilityType.NO_RESET,\"true\");\r\n\t  cap.setCapability(\"sendKeyStrategy\",\"setValue\");\r\n\t  cap.setCapability(\"--no-reset\", false);\r\n\t  cap.setCapability(MobileCapabilityType.APP,f.getAbsolutePath());\r\n\t  driver = new IOSDriver<MobileElement>(new URL(\"http://0.0.0.0:4723/wd/hub\"), cap);\r\n\t  driver.manage().timeouts().implicitlyWait(600, TimeUnit.SECONDS);\r\n\r\nIn case a similar scenario is missing in sample-code, please submit a PR with one of the sample apps provided."},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/266139552","html_url":"https://github.com/appium/appium/issues/7481#issuecomment-266139552","issue_url":"https://api.github.com/repos/appium/appium/issues/7481","id":266139552,"user":{"login":"imurchie","id":2614354,"avatar_url":"https://avatars.githubusercontent.com/u/2614354?v=3","gravatar_id":"","url":"https://api.github.com/users/imurchie","html_url":"https://github.com/imurchie","followers_url":"https://api.github.com/users/imurchie/followers","following_url":"https://api.github.com/users/imurchie/following{/other_user}","gists_url":"https://api.github.com/users/imurchie/gists{/gist_id}","starred_url":"https://api.github.com/users/imurchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imurchie/subscriptions","organizations_url":"https://api.github.com/users/imurchie/orgs","repos_url":"https://api.github.com/users/imurchie/repos","events_url":"https://api.github.com/users/imurchie/events{/privacy}","received_events_url":"https://api.github.com/users/imurchie/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T22:23:02Z","updated_at":"2016-12-09T22:23:02Z","body":"Yes, that could be an option. I feel like I've seen it update when it needs to, run manually. I can try some things out to experiment."}}
{"actor":{"display_login":"imurchie"}}