{"action":"opened","issue":{"url":"https://api.github.com/repos/appium/appium/issues/7520","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/7520/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/7520/comments","events_url":"https://api.github.com/repos/appium/appium/issues/7520/events","html_url":"https://github.com/appium/appium/issues/7520","id":195260533,"number":7520,"title":"Fail to launch test on real iOS device","user":{"login":"jeangb","id":22364949,"avatar_url":"https://avatars.githubusercontent.com/u/22364949?v=3","gravatar_id":"","url":"https://api.github.com/users/jeangb","html_url":"https://github.com/jeangb","followers_url":"https://api.github.com/users/jeangb/followers","following_url":"https://api.github.com/users/jeangb/following{/other_user}","gists_url":"https://api.github.com/users/jeangb/gists{/gist_id}","starred_url":"https://api.github.com/users/jeangb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeangb/subscriptions","organizations_url":"https://api.github.com/users/jeangb/orgs","repos_url":"https://api.github.com/users/jeangb/repos","events_url":"https://api.github.com/users/jeangb/events{/privacy}","received_events_url":"https://api.github.com/users/jeangb/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":0,"created_at":"2016-12-13T14:01:28Z","updated_at":"2016-12-13T14:01:28Z","closed_at":null,"body":"## The problem\r\n\r\nSince 3 days I'm struggling to launch a test on real device.\r\nI'm trying to use the XCUITest framework. I've been setting the team on all the targets from the WDA Xcode project.\r\nWhen I launch my test, I've got this error from appium server:\r\n\r\n> [XCUITest] Unable to start WebDriverAgent: Error: Command 'idevicedate -u e75c0085c74a872846772a6b2ee56a86849a4d92' exited with code 255\r\n\r\n## Environment\r\n\r\n* Appium version (or git revision) that exhibits the issue: 1.6.3\r\n* Desktop OS/version used to run Appium: 10.11.6\r\n* Node.js version (unless using Appium.app|exe): v6.9.1\r\n* Mobile platform/version under test: iOS 9.3.5\r\n* Real device or emulator/simulator: real (iPhone 6 plus)\r\n* Appium CLI or Appium.app|exe: appium CLI\r\n* Xcode : **8.1**\r\n\r\n## Details\r\n\r\nHere's my setup to launch the appium driver:\r\n```\r\n\t\tDesiredCapabilities capabilities = new DesiredCapabilities();\r\n\t\tcapabilities.setCapability(MobileCapabilityType.DEVICE_NAME,\"[MY_DEVICE_NAME]\");\r\n\t\tcapabilities.setCapability(MobileCapabilityType.PLATFORM_NAME,\"iOS\");\r\n\t\tcapabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, \"9.3.5\");\r\n\t\tcapabilities.setCapability(MobileCapabilityType.UDID, \"[MY_UDID]\");\r\n\t\tcapabilities.setCapability(\"bundleId\", \"im.vector.app\");//app\r\n\t\t\r\n\t\t//TODO: XCUITest is used because Appium Ios driver doesn't support xcode version 8.0\r\n\t\tcapabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME,\"XCUITest\");\r\n\t\tcapabilities.setCapability(\"realDeviceLogger\", \"/usr/local/lib/node_modules/deviceconsole/deviceconsole\");\r\n\t\tcapabilities.setCapability(MobileCapabilityType.NO_RESET, true);\r\n\t\tcapabilities.setCapability(MobileCapabilityType.FULL_RESET, false);\r\n\t\tcapabilities.setCapability(\"xcodeConfigfile\", \"/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Configurations/ProjectSettings.xcconfig\");\r\n\t\tcapabilities.setCapability(\"autoDismissAlerts\", false);\r\n\t\tAppiumFactory appiumFactory=new AppiumFactory();\r\n\t\tappiumFactory.setiOSDriver1(new URL(Constant.SERVER1_ADRESS), capabilities);\r\n```\r\n\r\nHere's the full logs of appium server:\r\nhttps://gist.github.com/jeangb/904a7fcd0077f8e342fef7baf3811280\r\nI saw Appium Server is trying to build the WDA agent with the command \r\n\r\n> xcodebuild build test -project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=e75c0085c74a872846772a6b2ee56a86849a4d92 -configuration Debug\r\n\r\nso I've been executed this command and here's the log it give me:\r\nhttps://gist.github.com/jeangb/c6c9b2b28e4620f426137f4da60091fe.\r\n\r\nAnd when I launch the \"build an then test the current scheme\" of the runner target of the Xcode project (WDA), I've got this:\r\n```\r\ndyld: Library not loaded: @rpath/XCTest.framework/XCTest\r\n  Referenced from: /var/containers/Bundle/Application/BBFB42C4-6E64-494A-AE2B-0E45C4FF2E8F/WebDriverAgentRunner-Runner.app/XCTRunner\r\n  Reason: no suitable image found.  Did find:\r\n\t/private/var/containers/Bundle/Application/BBFB42C4-6E64-494A-AE2B-0E45C4FF2E8F/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest: mmap() errno=1 validating first page of '/private/var/containers/Bundle/Application/BBFB42C4-6E64-494A-AE2B-0E45C4FF2E8F/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest'\r\n\t/private/var/containers/Bundle/Application/BBFB42C4-6E64-494A-AE2B-0E45C4FF2E8F/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest: mmap() errno=1 validating first page of '/private/var/containers/Bundle/Application/BBFB42C4-6E64-494A-AE2B-0E45C4FF2E8F/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest'\r\n(lldb) \r\n```\r\nIt manages to launch WebDriverAgent on the phone but screen is black.\r\n\r\nCan you help me ?\r\n\r\n## Link to Appium logs\r\n\r\nCreate a [gist](https://gist.github.com) which is a paste of your _full_ Appium logs, and link them here. Do _not_ paste your full Appium logs here, as it will make this issue very long and hard to read! If you are reporting a bug, _always_ include Appium logs!\r\n\r\n\r\n## Code To Reproduce Issue [ Good To Have ]\r\n\r\nPlease remember that, with sample code; it's easier to reproduce bug and much faster to fix it.\r\n\r\nPlease git clone https://github.com/appium/sample-code and use one of your favourite languages and sample apps to reproduce issue.\r\n\r\nIn case a similar scenario is missing in sample-code, please submit a PR with one of the sample apps provided."}}
{"actor":{"display_login":"jeangb"}}