{"id":69559,"date":"2019-12-30T16:43:26","date_gmt":"2019-12-30T11:13:26","guid":{"rendered":"https:\/\/www.vskills.in\/certification\/tutorial\/?p=69559"},"modified":"2024-04-12T14:21:53","modified_gmt":"2024-04-12T08:51:53","slug":"appium-xcuitest-driver-real-device-setup","status":"publish","type":"page","link":"https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/","title":{"rendered":"Appium XCUITest Driver Setup"},"content":{"rendered":"\n<p><a href=\"https:\/\/www.vskills.in\/certification\/tutorial\/mobile-testing-appium-tutorials\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go back to tutorial<\/a><\/p>\n\n\n<h1><strong>Appium XCUITest Driver Setup<\/strong><\/h1>\n<p>We will now be discussing about the process of running Appium XCUITest Driver Setup. Further, we&nbsp; will elaborate more about installing dependencies, process of configuration etc. We will now be discussing installing dependencies.<\/p>\n<h3><strong>Installing dependencies<\/strong><\/h3>\n<p>Appium iOS real device support depends on a central third-party software suite, libimobiledevice, which is easily installable with Homebrew &#8211;<\/p>\n<p>brew install libimobiledevice &#8211;HEAD<\/p>\n<p>Additionally, Appium support for real devices running iOS 9.3 and above using Xcode 8+, which depends on ios-deploy. It is easily available through npm or Homebrew:<\/p>\n<p>npm install -g ios-deploy<\/p>\n<p>brew install ios-deploy<\/p>\n<p>For hybrid or web tests, you may also need to follow the ios-webkit-debug-proxy setup instructions.&nbsp;The Appium XCUITest driver works via the installation of a helper application called WebDriverAgent-Runner onto the device. Using which the application under test is automated.<\/p>\n<h3><strong>Basic (Automatic) Configuration<\/strong><\/h3>\n<p>One of the best way to get up-and-running with Appium&#8217;s XCUITest Driver support on iOS real devices is to use the automatic configuration strategy. You may use two ways to do this &#8211;<\/p>\n<ul>\n<li>Use the xcodeOrgId and xcodeSigningId desired capabilities:<\/li>\n<\/ul>\n<p>{<\/p>\n<p>&#8220;xcodeOrgId&#8221;: &#8220;&lt;Team ID&gt;&#8221;,<\/p>\n<p>&#8220;xcodeSigningId&#8221;: &#8220;iPhone Developer&#8221;<\/p>\n<p>}<\/p>\n<ul>\n<li>Create a .xcconfig file somewhere on your file system by adding the following<\/li>\n<\/ul>\n<p>DEVELOPMENT_TEAM = &lt;Team ID&gt;<\/p>\n<p>CODE_SIGN_IDENTITY = iPhone Developer<\/p>\n<p>Once this configuration is done, it should just be a matter of starting your test specifying a real device in your udid desired capability.<\/p>\n<h3><strong>Tacking Testing Failure<\/strong><\/h3>\n<p>In case, the test target WebDriverAgentRunner encountered an error (Early unexpected exit, operation never finished bootstrapping &#8211; no restart will be attempted). Further, the problem is that the developer is not trusted on the device. Also, if you manually try to run the WebDriverAgentRunner app on the device, you will see the following popup message &#8211;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-139792\" src=\"https:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2019\/07\/image051-1.png\" alt=\"\" width=\"216\" height=\"384\"><\/p>\n<p class=\"VSKILLbodytext\">You can go to Settings =&gt; General =&gt; Device Management on the device to trust the developer and allow the WebDriverAgentRunner app to be run.<\/p>\n<h3 class=\"vskills3\"><strong><span lang=\"EN-GB\">Basic (Manual) Configuration<\/span><\/strong><\/h3>\n<p class=\"VSKILLbodytext\">There are many cases in which the basic automatic configuration is not enough. Moreover, this has to do with code signing and the configuration of the project to be able to be run on the real device under test. Often, this happens when the development account being used is a &#8220;Free&#8221; one, in which case it is not possible to create a wildcard provisioning profile, and will often not create one for the default application bundle. Therefore, this will manifest as something like an error that Xcode failed to create provisioning profile,<\/p>\n<ul>\n<li class=\"VSKILLbodytext\">No provisioning profile &#8211; The easiest way around this is to create a provisioning profile by opening Xcode and creating a new project.<\/li>\n<li class=\"VSKILLbodytext\">Create new project &#8211; The type does not matter, other than it being &#8220;iOS&#8221;. &#8220;Single View Application&#8221; is the easiest<\/li>\n<li class=\"VSKILLbodytext\">Create single page &#8211; The important part is to use a unique &#8220;Product Name&#8221; and &#8220;Organization Name&#8221;. Also, at this point, specify your &#8220;Team&#8221;.<\/li>\n<li class=\"VSKILLbodytext\">Setup bundle &#8211; You can confirm that the provisioning profile was created by looking at the &#8220;Project&#8221; tab:<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-139793\" src=\"https:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2019\/07\/image053-2.png\" alt=\"\" width=\"649\" height=\"193\"><\/p>\n<p><strong>Check provisioning profile<\/strong><\/p>\n<p>Further, at this point you have a valid provisioning profile. Also, make note of the bundle id you associated with it. And add that in the updatedWDABundleId desired capability for your tests. Then follow the initial instructions for automatic configuration.<\/p>\n<p><strong>Configuring the app under test<\/strong><\/p>\n<p>The WebDriverAgent need to be configured to run on your device, but your app must also be able to run on your device.But, the central requirements are the same i.e., to have a build of your app (an .ipa file) signed with a development provisioning profile. A good overview of the process can be found here and here.<\/p>\n<p><span style=\"font-size: 16px;\">Further, Appium handles installing the application to the device, using ideviceinstaller, but it is sometimes easier to pre-install your app using Xcode to ensure there are no problems.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h4><strong>Enrich your profile and become Job Ready. Practice and Prepare for&nbsp;<a href=\"https:\/\/www.vskills.in\/certification\/testing\/mobile-testing-appium-professional\">Mobile Testing (Appium) Exam<\/a>&nbsp;Now!<\/strong><\/h4>\n<h4><strong>Get expert advice and hundreds of Free Test \u2013 Try&nbsp;<a href=\"https:\/\/www.vskills.in\/practice\/index.php?route=test\/search&amp;search=appium\">Mobile Testing (Appium) Practice Questions<\/a>&nbsp;Now!<\/strong><\/h4>\n\n\n<p><a href=\"https:\/\/www.vskills.in\/certification\/tutorial\/mobile-testing-appium-tutorials\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go back to tutorial<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go back to tutorial Appium XCUITest Driver Setup We will now be discussing about the process of running Appium XCUITest Driver Setup. Further, we&nbsp; will elaborate more about installing dependencies, process of configuration etc. We will now be discussing installing dependencies. Installing dependencies Appium iOS real device support depends on a central third-party software suite,&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[7891],"tags":[7982],"class_list":["post-69559","page","type-page","status-publish","hentry","category-mobile-testing-appium","tag-appium-xcuitest-driver-real-device-setup"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Appium XCUITest Driver Setup - Tutorial<\/title>\n<meta name=\"description\" content=\"Get ready to boost your learning and prepare to become a Certified Mobile Testing (Appium) Professional. Learn more about Appium XCUITest Driver Now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Appium XCUITest Driver Setup - Tutorial\" \/>\n<meta property=\"og:description\" content=\"Get ready to boost your learning and prepare to become a Certified Mobile Testing (Appium) Professional. Learn more about Appium XCUITest Driver Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vskills.in\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-12T08:51:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2019\/07\/image051-1.png\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/\",\"name\":\"Appium XCUITest Driver Setup - Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2019\/07\/image051-1.png\",\"datePublished\":\"2019-12-30T11:13:26+00:00\",\"dateModified\":\"2024-04-12T08:51:53+00:00\",\"description\":\"Get ready to boost your learning and prepare to become a Certified Mobile Testing (Appium) Professional. Learn more about Appium XCUITest Driver Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/#primaryimage\",\"url\":\"https:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2019\/07\/image051-1.png\",\"contentUrl\":\"https:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2019\/07\/image051-1.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Appium XCUITest Driver Setup\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"name\":\"Tutorial\",\"description\":\"Vskills - A initiative in elearning and certification\",\"publisher\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\",\"name\":\"Vskills\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"width\":73,\"height\":55,\"caption\":\"Vskills\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/vskills.in\/\",\"https:\/\/x.com\/vskills_in\",\"https:\/\/www.linkedin.com\/company-beta\/1371554\/\",\"https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Appium XCUITest Driver Setup - Tutorial","description":"Get ready to boost your learning and prepare to become a Certified Mobile Testing (Appium) Professional. Learn more about Appium XCUITest Driver Now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/","og_locale":"en_US","og_type":"article","og_title":"Appium XCUITest Driver Setup - Tutorial","og_description":"Get ready to boost your learning and prepare to become a Certified Mobile Testing (Appium) Professional. Learn more about Appium XCUITest Driver Now!","og_url":"https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/","og_site_name":"Tutorial","article_publisher":"https:\/\/www.facebook.com\/vskills.in\/","article_modified_time":"2024-04-12T08:51:53+00:00","og_image":[{"url":"https:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2019\/07\/image051-1.png","type":"","width":"","height":""}],"twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/","name":"Appium XCUITest Driver Setup - Tutorial","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/#primaryimage"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/#primaryimage"},"thumbnailUrl":"https:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2019\/07\/image051-1.png","datePublished":"2019-12-30T11:13:26+00:00","dateModified":"2024-04-12T08:51:53+00:00","description":"Get ready to boost your learning and prepare to become a Certified Mobile Testing (Appium) Professional. Learn more about Appium XCUITest Driver Now!","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/#primaryimage","url":"https:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2019\/07\/image051-1.png","contentUrl":"https:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2019\/07\/image051-1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/appium-xcuitest-driver-real-device-setup\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Appium XCUITest Driver Setup"}]},{"@type":"WebSite","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","name":"Tutorial","description":"Vskills - A initiative in elearning and certification","publisher":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization","name":"Vskills","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","width":73,"height":55,"caption":"Vskills"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/vskills.in\/","https:\/\/x.com\/vskills_in","https:\/\/www.linkedin.com\/company-beta\/1371554\/","https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw"]}]}},"_links":{"self":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/69559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/comments?post=69559"}],"version-history":[{"count":5,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/69559\/revisions"}],"predecessor-version":[{"id":84623,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/69559\/revisions\/84623"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/media?parent=69559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/categories?post=69559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/tags?post=69559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}