{"id":1968,"date":"2015-04-26T04:22:20","date_gmt":"2015-04-26T08:22:20","guid":{"rendered":"http:\/\/www.rexfeng.com\/blog\/?p=1968"},"modified":"2015-04-26T04:22:20","modified_gmt":"2015-04-26T08:22:20","slug":"setup-apple-watch-for-development-guide","status":"publish","type":"post","link":"https:\/\/www.rexfeng.com\/blog\/2015\/04\/setup-apple-watch-for-development-guide\/","title":{"rendered":"Setup Apple Watch for Development Guide"},"content":{"rendered":"<p>While working in\u00a0Xcode and running my watch app on my\u00a0actual hardware watch for the first time, I ran into this error on my watch the first time: &#8220;Failed to install [app], error: Application Verification Failed.&#8221; <a href=\"http:\/\/stackoverflow.com\/a\/29854315\/678696\">This stack overflow answer provides the solution<\/a>, but I wanted help illustrate the steps I took to fix the error. <em>Disclaimer: this worked for me, but there are probably more optimal ways of fixing the error.<\/em><\/p>\n<ol>\n<li>In Xcode, get the UDID of your Apple Watch (WIndow &gt; Devices). The UDID is labeled &#8220;Identifier&#8221; and you can double click on the Identifier device hash to select &amp; copy it.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1969\" src=\"http:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/1.png\" alt=\"1\" width=\"403\" height=\"156\" srcset=\"https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/1.png 403w, https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/1-150x58.png 150w, https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/1-300x116.png 300w\" sizes=\"auto, (max-width: 403px) 100vw, 403px\" \/><\/li>\n<li>Visit the Apple Developer Portal at\u00a0<a href=\"https:\/\/developer.apple.com\/devcenter\/ios\/index.action\">https:\/\/developer.apple.com\/devcenter\/ios\/index.action<\/a> and click on &#8220;Certificates, Identifiers &amp; Profiles&#8221; in the right sidebar.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1970\" src=\"http:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/2.png\" alt=\"2\" width=\"264\" height=\"200\" srcset=\"https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/2.png 264w, https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/2-150x114.png 150w\" sizes=\"auto, (max-width: 264px) 100vw, 264px\" \/><\/li>\n<li>Click on Devices &gt; All in the left sidebar.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1971\" src=\"http:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/3.png\" alt=\"3\" width=\"232\" height=\"71\" srcset=\"https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/3.png 232w, https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/3-150x46.png 150w\" sizes=\"auto, (max-width: 232px) 100vw, 232px\" \/><\/li>\n<li>Click on the Plus Sign (+) in the top right.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1972\" src=\"http:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/4-540x61.png\" alt=\"4\" width=\"540\" height=\"61\" srcset=\"https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/4-540x61.png 540w, https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/4-150x17.png 150w, https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/4-300x34.png 300w, https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/4-624x71.png 624w, https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/4.png 716w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/li>\n<li>In Register Device, provide a Name (whatever you want) and your watch UDID (from step 1 above).<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1973\" src=\"http:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/5-540x158.png\" alt=\"5\" width=\"540\" height=\"158\" srcset=\"https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/5-540x158.png 540w, https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/5-150x44.png 150w, https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/5-300x88.png 300w, https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/5-624x183.png 624w, https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/5.png 689w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/li>\n<li>Submit the form to register your watch device.<\/li>\n<li>In\u00a0&#8220;Certificates, Identifiers &amp; Profiles&#8221;, locate your .watchkitextension\u00a0Provisioning Profile for your app. Select &amp;\u00a0download this profile.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1974\" src=\"http:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/7-540x53.png\" alt=\"7\" width=\"540\" height=\"53\" srcset=\"https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/7-540x53.png 540w, https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/7-150x15.png 150w, https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/7-300x30.png 300w, https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/7-624x62.png 624w, https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/7.png 709w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/li>\n<li>Locate your downloaded profile file on your computer &amp; double click the Provisioning Profile.<\/li>\n<li>Restart Xcode.<\/li>\n<li>Build your project and you will encounter a iOS Development Certificate alert.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1975\" src=\"http:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/10-540x131.png\" alt=\"10\" width=\"540\" height=\"131\" srcset=\"https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/10-540x131.png 540w, https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/10-150x37.png 150w, https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/10-300x73.png 300w, https:\/\/www.rexfeng.com\/blog\/wp-content\/uploads\/2015\/04\/10.png 604w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/li>\n<li><strong>Warning, this step\u00a0may be dangerous (proceed at your own risk).<\/strong> This worked for me. Click on &#8220;Revoke and Request&#8221;. This will revoke your current certificate and request a new one. You will probably get an email notifying you that\u00a0&#8220;Your Certificate Has Been Revoked&#8221;.<\/li>\n<li>Run your Xcode project. Your watch app should now load the development build on your actual watch hardware.<\/li>\n<\/ol>\n<p><em>About the author: Rex Feng enjoys\u00a0iOS development and has released <a href=\"https:\/\/itunes.apple.com\/us\/app\/pomodoro-pro\/id966415847?ls=1&amp;mt=8\">Pomodoro Pro<\/a>\u00a0for the iPhone &amp; Apple Watch. You can follow him <a href=\"https:\/\/twitter.com\/rexfeng\">@rexfeng<\/a>.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>While working in\u00a0Xcode and running my watch app on my\u00a0actual hardware watch for the first time, I ran into this error on my watch the first time: &#8220;Failed to install [app], error: Application Verification Failed.&#8221; This stack overflow answer provides the solution, but I wanted help illustrate the steps I took to fix the error. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1029],"tags":[380,1215,1117,718,966,1207,813,1086],"class_list":["post-1968","post","type-post","status-publish","format-standard","hentry","category-programming","tag-apple","tag-debug","tag-dev","tag-hardware","tag-ios","tag-provisioning","tag-watch","tag-xcode"],"_links":{"self":[{"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/posts\/1968","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/comments?post=1968"}],"version-history":[{"count":5,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/posts\/1968\/revisions"}],"predecessor-version":[{"id":1980,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/posts\/1968\/revisions\/1980"}],"wp:attachment":[{"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/media?parent=1968"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/categories?post=1968"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rexfeng.com\/blog\/wp-json\/wp\/v2\/tags?post=1968"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}