[{"data":1,"prerenderedAt":273},["ShallowReactive",2],{"article-xamarin-unable-to-debug-android-application":3},{"article":4,"tags":106,"previous":121,"next":167},{"id":5,"title":6,"author":7,"body":8,"createdAt":95,"description":96,"extension":97,"img":25,"meta":98,"navigation":99,"path":100,"seo":101,"stem":102,"tags":103,"updatedAt":95,"__hash__":105},"articles\u002Farticles\u002Fxamarin-unable-to-debug-android-application.md","Xamarin Unable to Debug Android Application","[object Object]",{"type":9,"value":10,"toc":91},"minimark",[11,28,35,38,49,52,63,71,74,83],[12,13,14],"p",{},[15,16,19],"a",{"style":17,"href":18},"display: none","\u002Farticles\u002Fimages\u002Fopen-live-writer-xamarin-unable-to-debug-android-applicat_83e7-xambear_2.png",[20,21],"img",{"title":22,"style":23,"border":24,"alt":22,"src":25,"width":26,"height":27},"xambear","border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px",0,"\u002Farticles\u002Fimages\u002Fopen-live-writer-xamarin-unable-to-debug-android-applicat_83e7-xambear_thumb.png",238,240,[12,29,30,31],{},"Using Visual Studio 2017 and opening small Xamarin forms application, building then debug-run I get the following error in the output window. This occurred while using the Visual Studio Android emulator.\n",[32,33,34],"em",{},"“Android application is debugging.\nCould not connect to the debugger.”",[12,36,37],{},"The solution was to open Hyper-V Manager, find the emulator (ensure that the emulator is shutdown), Settings – Processor then select ‘Migrate to a physical computer…’",[12,39,40],{},[15,41,43],{"href":42},"\u002Farticles\u002Fimages\u002Fopen-live-writer-xamarin-unable-to-debug-android-applicat_83e7-image_2.png",[20,44],{"title":45,"style":23,"border":24,"alt":45,"src":46,"width":47,"height":48},"image","\u002Farticles\u002Fimages\u002Fopen-live-writer-xamarin-unable-to-debug-android-applicat_83e7-image_thumb.png",326,310,[12,50,51],{},"While this seemed like the complete solution it wasn’t. One of my projects I could debug while the other one I could not. I compared the two csproj files and found this difference.",[12,53,54],{},[15,55,57],{"href":56},"\u002Farticles\u002Fimages\u002Fopen-live-writer-xamarin-unable-to-debug-android-applicat_83e7-image_4.png",[20,58],{"title":45,"style":59,"border":24,"alt":45,"src":60,"width":61,"height":62},"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px","\u002Farticles\u002Fimages\u002Fopen-live-writer-xamarin-unable-to-debug-android-applicat_83e7-image_thumb_1.png",594,47,[12,64,65,66,70],{},"Once I set my project option to ",[67,68,69],"debug-symbols",{},"True"," it worked, and I could F5 Debug the solution\u002Fproject.",[12,72,73],{},"References:",[12,75,76,79],{},[15,77],{"title":78,"href":78},"https:\u002F\u002Fdeveloper.xamarin.com\u002Fguides\u002Fandroid\u002Fdeployment,_testing,_and_metrics\u002Fdebug-on-emulator\u002Fvisual-studio-android-emulator\u002F#Troubleshooting",[15,80,78],{"href":78,"rel":81},[82],"nofollow",[12,84,85,88],{},[15,86],{"title":87,"href":87},"http:\u002F\u002Fdotnetbyexample.blogspot.com\u002F2016\u002F02\u002Ffix-for-could-not-connect-to-debugger.html",[15,89,87],{"href":87,"rel":90},[82],{"title":92,"searchDepth":93,"depth":93,"links":94},"",2,[],"2017-02-07T02:28:10.7500000-05:00",null,"md",{},true,"\u002Farticles\u002Fxamarin-unable-to-debug-android-application",{"title":6,"description":96},"articles\u002Fxamarin-unable-to-debug-android-application",[104],"xamarin","xEMm429S_KQM-tgQHYtY0p4LQ9fk8AFAFkSktelwbHI",[107],{"id":108,"title":109,"body":110,"description":114,"extension":97,"img":115,"meta":116,"name":104,"navigation":99,"path":117,"seo":118,"stem":119,"__hash__":120},"tags\u002Ftags\u002Fxamarin.md","Xamarin",{"type":9,"value":111,"toc":112},[],{"title":92,"searchDepth":93,"depth":93,"links":113},[],"Xamarin is an open-source platform for building modern and performant applications for iOS, Android, and Windows with . NET. Xamarin is an abstraction layer that manages communication of shared code with underlying platform code.","https:\u002F\u002Fimages.unsplash.com\u002Fphoto-1598313183973-4effcded8d5e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=675&q=80",{},"\u002Ftags\u002Fxamarin",{"description":114},"tags\u002Fxamarin","deVB66I7cJMtWvqybFh5POf9LBCBwHNe-5ZGMOzV5G4",{"id":122,"title":123,"author":7,"body":124,"createdAt":160,"description":96,"extension":97,"img":157,"meta":161,"navigation":99,"path":162,"seo":163,"stem":164,"tags":165,"updatedAt":160,"__hash__":166},"articles\u002Farticles\u002Funable-to-start-build-4-3-0-664-agent-when-building-ios-apps.md","Unable to start Build 4.3.0.664 agent. when building iOS apps",{"type":9,"value":125,"toc":158},[126,129,132,135,138,141,143],[12,127,128],{},"Starting up Visual Studio 2017 RC today, opening a Xamarin Forms application and building",[12,130,131],{},"I am presented with…\n“Unable to start Build 4.3.0.664 agent. when building iOS apps”",[12,133,134],{},"Uggh, yes another build issue.  So before I can do anything I must once again work through connectivity, emulator, build errors.  Note, if you venture to go in this direction with your learning\u002Fcareer patience is a must.",[12,136,137],{},"1.) Delete this folder:\nC:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\IDE\\Extensions\\Xamarin",[12,139,140],{},"2.) Delete this folder:\nC:\\Users{username}\\AppData\\Local\\Microsoft\\VisualStudio\\15.0_3bcaeaa8\n(this hash needs to correspond to the instance of VS 2017 you are using)   I am using 2017 RC.4+26206.0 right now by the way.",[12,142,73],{},[12,144,145,148,151,152],{},[15,146],{"title":147,"href":147},"https:\u002F\u002Fbugzilla.xamarin.com\u002Fshow_bug.cgi?id=52320",[15,149,147],{"href":147,"rel":150},[82]," ",[15,153,155],{"style":17,"href":154},"\u002Farticles\u002Fimages\u002Fopen-live-writer-f3509fbbd236_cabe-xambear_2.png",[20,156],{"title":22,"style":23,"border":24,"alt":22,"src":157,"width":26,"height":27},"\u002Farticles\u002Fimages\u002Fopen-live-writer-f3509fbbd236_cabe-xambear_thumb.png",{"title":92,"searchDepth":93,"depth":93,"links":159},[],"2017-02-11T07:30:20.2700000-05:00",{},"\u002Farticles\u002Funable-to-start-build-4-3-0-664-agent-when-building-ios-apps",{"title":123,"description":96},"articles\u002Funable-to-start-build-4-3-0-664-agent-when-building-ios-apps",[104],"Bvk7DkjOIcwpBI7iCzu8qpkqzDHOQEEgIXovxsIBVhQ",{"id":168,"title":169,"author":7,"body":170,"createdAt":265,"description":266,"extension":97,"img":175,"meta":267,"navigation":99,"path":268,"seo":269,"stem":270,"tags":271,"updatedAt":265,"__hash__":272},"articles\u002Farticles\u002Fvisual-studio-2017-ios-build-debug-error.md","Visual Studio 2017 IOS Build Debug Error",{"type":9,"value":171,"toc":263},[172,178,181,234,237,240,248,259],[20,173],{"title":174,"style":23,"border":24,"alt":174,"src":175,"width":176,"height":177},"xam","\u002Farticles\u002Fimages\u002Fopen-live-writer-visual-studio-2017ios-build-debug-error_c406-xam_thumb.png",132,121,[12,179,180],{},"Ok, I got my Visual Studio Android emulator working, see prior blog post. Now focusing on IOS debug-run with a connected Mac.\nI got the following error..  Severity Code Description Project File Line Suppression State",[182,183,187],"pre",{"className":184,"code":185,"language":186,"meta":92,"style":92},"language-html shiki shiki-themes github-light github-dark","Error Could not copy the assembly '\u002FLibrary\u002FFrameworks\u002FXamarin.iOS.framework\u002FVersions\u002F10.4.0.97\u002Flib\u002Fmono\u002FXamarin.iOS\u002Fmscorlib.dll' to \n'\u002FUsers\u002Fdavidyardy\u002FLibrary\u002FCaches\u002FXamarin\u002Fmtbs\u002Fbuilds\u002FApp1.iOS\u002F820c43b5a93f812c648bedcbb5cd7ad5\u002Fbin\u002FiPhoneSimulator\u002FDebug\u002FApp1.iOS.app\u002F.monotouch-64\u002Fmscorlib.dll': \n\nAccess to the path \n\"\u002FLibrary\u002FFrameworks\u002FXamarin.iOS.framework\u002FVersions\u002F10.4.0.97\u002Flib\u002Fmono\u002FXamarin.iOS\u002Fmscorlib.dll.mdb\" \nor \"\u002FUsers\u002Fdavidyardy\u002FLibrary\u002FCaches\u002FXamarin\u002Fmtbs\u002Fbuilds\u002FApp1.iOS\u002F820c43b5a93f812c648bedcbb5cd7ad5\u002Fbin\u002FiPhoneSimulator\u002FDebug\u002FApp1.iOS.app\u002F.monotouch-64\u002Fmscorlib.dll.mdb\" is denied. \nApp1.iOS   \n","html",[188,189,190,199,204,210,216,222,228],"code",{"__ignoreMap":92},[191,192,195],"span",{"class":193,"line":194},"line",1,[191,196,198],{"class":197},"sVt8B","Error Could not copy the assembly '\u002FLibrary\u002FFrameworks\u002FXamarin.iOS.framework\u002FVersions\u002F10.4.0.97\u002Flib\u002Fmono\u002FXamarin.iOS\u002Fmscorlib.dll' to \n",[191,200,201],{"class":193,"line":93},[191,202,203],{"class":197},"'\u002FUsers\u002Fdavidyardy\u002FLibrary\u002FCaches\u002FXamarin\u002Fmtbs\u002Fbuilds\u002FApp1.iOS\u002F820c43b5a93f812c648bedcbb5cd7ad5\u002Fbin\u002FiPhoneSimulator\u002FDebug\u002FApp1.iOS.app\u002F.monotouch-64\u002Fmscorlib.dll': \n",[191,205,207],{"class":193,"line":206},3,[191,208,209],{"emptyLinePlaceholder":99},"\n",[191,211,213],{"class":193,"line":212},4,[191,214,215],{"class":197},"Access to the path \n",[191,217,219],{"class":193,"line":218},5,[191,220,221],{"class":197},"\"\u002FLibrary\u002FFrameworks\u002FXamarin.iOS.framework\u002FVersions\u002F10.4.0.97\u002Flib\u002Fmono\u002FXamarin.iOS\u002Fmscorlib.dll.mdb\" \n",[191,223,225],{"class":193,"line":224},6,[191,226,227],{"class":197},"or \"\u002FUsers\u002Fdavidyardy\u002FLibrary\u002FCaches\u002FXamarin\u002Fmtbs\u002Fbuilds\u002FApp1.iOS\u002F820c43b5a93f812c648bedcbb5cd7ad5\u002Fbin\u002FiPhoneSimulator\u002FDebug\u002FApp1.iOS.app\u002F.monotouch-64\u002Fmscorlib.dll.mdb\" is denied. \n",[191,229,231],{"class":193,"line":230},7,[191,232,233],{"class":197},"App1.iOS\n",[12,235,236],{},"I made sure that my Mac Agent was connected and all seemed good there. I opened the with Xamarin Studio (on the Mac) and had the exact same error. Ok so this error is not isolated to only Visual Studio (or worse yet just 2017). I now have the problem on both Mac and Windows.",[12,238,239],{},"This could be related to the beta release\u002Fchannel of Xamarin. Ok, so the resolution was found with this bug\u002Fresolution posted here",[12,241,242,245],{},[15,243],{"title":244,"href":244},"https:\u002F\u002Fbugzilla.xamarin.com\u002Fshow_bug.cgi?id=52113",[15,246,244],{"href":244,"rel":247},[82],[12,249,250,251,254,255,258],{},"The full workaround is:",[252,253],"br",{},"\nsudo chmod 0644 \u002FLibrary\u002FFrameworks\u002FXamarin.iOS.framework\u002FVersions\u002FCurrent\u002Flib\u002Fmono\u002F",[32,256,257],{},"\u002F",".mdb",[260,261,262],"style",{},"html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":92,"searchDepth":93,"depth":93,"links":264},[],"2017-02-05T04:02:44.7100000-05:00","Visual Studio and building IOS application",{},"\u002Farticles\u002Fvisual-studio-2017-ios-build-debug-error",{"title":169,"description":266},"articles\u002Fvisual-studio-2017-ios-build-debug-error",[104],"4aE_tqAmn0sxAwUmT9lVPkIatZrjaCo1WRB0ak5dzjA",1781574770375]