<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: App Crash using Hot Restart Xamarin Forms on iOS in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/app-crash-using-hot-restart-xamarin-forms-on-ios/m-p/1043289#M9939</link>
    <description>&lt;P&gt;More info...&lt;/P&gt;&lt;P&gt;The exception being thrown is&amp;nbsp;&lt;SPAN class="comment-copy"&gt;EntryPointNotFoundException&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;which means that the native call can't be resolved.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I did some sleuthing on my iPhone and found that runtimecore.dll and runtimecorenet.dll are not being copied to the deployment folder.&amp;nbsp; They also do not appear in the bin/Debug folder during build.&amp;nbsp; I believe those 2 dlls are the target of the native calls in Esri.ArcGISRuntime.dll.&lt;/P&gt;&lt;P&gt;So I think I have to figure out how to convince Visual Studio to include those in the iOS build.&amp;nbsp; I do see them being included in my UWP build.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Apr 2021 05:10:17 GMT</pubDate>
    <dc:creator>ChrisDalla_Piazza</dc:creator>
    <dc:date>2021-04-02T05:10:17Z</dc:date>
    <item>
      <title>App Crash using Hot Restart Xamarin Forms on iOS</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/app-crash-using-hot-restart-xamarin-forms-on-ios/m-p/1041415#M9923</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Want to check if anyone has had success with the ArcGIS Runtime using Visual Studio Xamarin Forms on iOS using hot restart?&lt;/P&gt;&lt;P&gt;I created a new Xamarin Forms app for iOS in Visual Studio and added the following code in AppDelegate.cs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public override bool FinishedLaunching(UIApplication app, NSDictionary options)
{
  global::Xamarin.Forms.Forms.Init();
  LoadApplication(new App());
  Esri.ArcGISRuntime.ArcGISRuntimeEnvironment.Initialize();

  return base.FinishedLaunching(app, options);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The app launches and runs fine without the Initialize method on my iPhone.&amp;nbsp; It feels like I'm missing a dependency.&lt;/P&gt;&lt;P&gt;This is the error I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[0:] An error occurred: 'CoreRT_ArcGISRuntimeEnvironment_setInstallDirectory assembly:&amp;lt;unknown assembly&amp;gt; type:&amp;lt;unknown type&amp;gt; member:(null)'. Callstack: '  at (wrapper managed-to-native) RuntimeCoreNet.GeneratedWrappers.CoreArcGISRuntimeEnvironment.CoreRT_ArcGISRuntimeEnvironment_setInstallDirectory(byte[],intptr&amp;amp;)
  at RuntimeCoreNet.GeneratedWrappers.CoreArcGISRuntimeEnvironment.SetInstallDirectory (System.String installPath) &amp;lt;0x138775060 + 0x00010&amp;gt; in &amp;lt;2a33546a5b934b588629d4e33895c554&amp;gt;:0 
  at Esri.ArcGISRuntime.ArcGISRuntimeEnvironment.InitNative () &amp;lt;0x1387748c8 + 0x00004&amp;gt; in &amp;lt;2a33546a5b934b588629d4e33895c554&amp;gt;:0 
  at Esri.ArcGISRuntime.ArcGISRuntimeEnvironment.Initialize () &amp;lt;0x138774538 + 0x00042&amp;gt; in &amp;lt;2a33546a5b934b588629d4e33895c554&amp;gt;:0 
  at App1.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x00013] in C:\Users\Chris\Documents\OnScene Xplorer\App1\App1.iOS\AppDelegate.cs:33 
  at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:86 
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:65 
  at App1.iOS.Application.Main (System.String[] args) [0x00001] in C:\Users\Chris\Documents\OnScene Xplorer\App1\App1.iOS\Main.cs:17 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&amp;amp;)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:395 '&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like its attempting to make a call into a native method using DllImport.&lt;/P&gt;&lt;P&gt;I also tried the sample app from ArcGIS and it also fails the same way once I enable hot restart on it.&lt;/P&gt;&lt;P&gt;Any ideas for how to fix this?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 04:03:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/app-crash-using-hot-restart-xamarin-forms-on-ios/m-p/1041415#M9923</guid>
      <dc:creator>ChrisDalla_Piazza</dc:creator>
      <dc:date>2021-03-29T04:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: App Crash using Hot Restart Xamarin Forms on iOS</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/app-crash-using-hot-restart-xamarin-forms-on-ios/m-p/1043289#M9939</link>
      <description>&lt;P&gt;More info...&lt;/P&gt;&lt;P&gt;The exception being thrown is&amp;nbsp;&lt;SPAN class="comment-copy"&gt;EntryPointNotFoundException&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;which means that the native call can't be resolved.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I did some sleuthing on my iPhone and found that runtimecore.dll and runtimecorenet.dll are not being copied to the deployment folder.&amp;nbsp; They also do not appear in the bin/Debug folder during build.&amp;nbsp; I believe those 2 dlls are the target of the native calls in Esri.ArcGISRuntime.dll.&lt;/P&gt;&lt;P&gt;So I think I have to figure out how to convince Visual Studio to include those in the iOS build.&amp;nbsp; I do see them being included in my UWP build.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 05:10:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/app-crash-using-hot-restart-xamarin-forms-on-ios/m-p/1043289#M9939</guid>
      <dc:creator>ChrisDalla_Piazza</dc:creator>
      <dc:date>2021-04-02T05:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: App Crash using Hot Restart Xamarin Forms on iOS</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/app-crash-using-hot-restart-xamarin-forms-on-ios/m-p/1043362#M9943</link>
      <description>&lt;P&gt;More info...&lt;/P&gt;&lt;P&gt;I checked the deployment folder on my iPhone. There is a native framework coming in from Nuget and it is making it onto the iPhone. It appears to be the target of the native call. In my UWP app, 2 dlls (runtimecore.dll and runtimecorenet.dll) appear to be the target of the native call.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[0:] File: /private/var/containers/Bundle/Application/5A23D747-9648-4727-8677-FB4E036F0343/App6.iOS.app/Frameworks/ArcGIS-arm64.framework/_CodeSignature/CodeResources
[0:] File: /private/var/containers/Bundle/Application/5A23D747-9648-4727-8677-FB4E036F0343/App6.iOS.app/Frameworks/ArcGIS-arm64.framework/ArcGIS-arm64
[0:] File: /private/var/containers/Bundle/Application/5A23D747-9648-4727-8677-FB4E036F0343/App6.iOS.app/Frameworks/ArcGIS-arm64.framework/Info.plist&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also see this in the verbose build output:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;3&amp;gt;MtouchExtraArgs =  --framework:"${ProjectDir}/framework/ArcGIS-arm64.framework" --dynamic-symbol-mode=code

...

3&amp;gt;Task "AssignLinkMetadata" (TaskId:169)
3&amp;gt;  Task Parameter:
3&amp;gt;      Items=
3&amp;gt;          C:\Users\Chris\.nuget\packages\esri.arcgisruntime.runtimes.ios\100.10.0\buildTransitive\Xamarin.iOS10\..\..\framework\ArcGIS-arm64.framework\ArcGIS-arm64
3&amp;gt;                  CopyToOutputDirectory=PreserveNewest
3&amp;gt;                  Link=framework\ArcGIS-arm64.framework\ArcGIS-arm64
3&amp;gt;          C:\Users\Chris\.nuget\packages\esri.arcgisruntime.runtimes.ios\100.10.0\buildTransitive\Xamarin.iOS10\..\..\framework\ArcGIS-arm64.framework\Info.plist
3&amp;gt;                  CopyToOutputDirectory=PreserveNewest
3&amp;gt;                  Link=framework\ArcGIS-arm64.framework\Info.plist (TaskId:169)
3&amp;gt;Done executing task "AssignLinkMetadata". (TaskId:169)&lt;/LI-CODE&gt;&lt;P&gt;I've read that native calls in iOS are static have to be built/compiled into the app. Do you know how I can check that this is happening correctly? Any idea what is going wrong with this native call?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be GREATLY appreciated. I would very much like to use my iPhone without a Mac to do dev on this project. Also don't want to commit to a Mac and then find the same problem!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 14:28:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/app-crash-using-hot-restart-xamarin-forms-on-ios/m-p/1043362#M9943</guid>
      <dc:creator>ChrisDalla_Piazza</dc:creator>
      <dc:date>2021-04-02T14:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: App Crash using Hot Restart Xamarin Forms on iOS</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/app-crash-using-hot-restart-xamarin-forms-on-ios/m-p/1043830#M9953</link>
      <description>&lt;P&gt;The ArcGIS-arm64.framework file is the iOS equivalent to runtimecore.dll and runtimecorenet.dll. I've recently seen issues with hot restart and framework files as well - it's my impression Xamarin.Forms recently broke this scenario and are following up with the Xamarin team.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 16:18:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/app-crash-using-hot-restart-xamarin-forms-on-ios/m-p/1043830#M9953</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2021-04-05T16:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: App Crash using Hot Restart Xamarin Forms on iOS</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/app-crash-using-hot-restart-xamarin-forms-on-ios/m-p/1044932#M9969</link>
      <description>&lt;P&gt;Thank you for the update. That is exciting news to see it should be working.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Would there be a last known good version of Xamarin.Forms to fall back to?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 01:28:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/app-crash-using-hot-restart-xamarin-forms-on-ios/m-p/1044932#M9969</guid>
      <dc:creator>ChrisDalla_Piazza</dc:creator>
      <dc:date>2021-04-09T01:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: App Crash using Hot Restart Xamarin Forms on iOS</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/app-crash-using-hot-restart-xamarin-forms-on-ios/m-p/1055286#M10069</link>
      <description>&lt;P&gt;I believe you might be hitting this issue:&amp;nbsp;&lt;A href="https://github.com/xamarin/Xamarin.Forms/issues/13016" target="_blank"&gt;https://github.com/xamarin/Xamarin.Forms/issues/13016&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 16:38:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/app-crash-using-hot-restart-xamarin-forms-on-ios/m-p/1055286#M10069</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2021-05-06T16:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: App Crash using Hot Restart Xamarin Forms on iOS</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/app-crash-using-hot-restart-xamarin-forms-on-ios/m-p/1095735#M10418</link>
      <description>&lt;P&gt;I bumped into the segv issue while chasing this problem and do have an odd workaround for it.&amp;nbsp; Rename the folder containing the Visual Studio solution and it goes away!&lt;/P&gt;&lt;P&gt;My experience with the segv issue is it will show up during the course of rebuilds using hot restart.&amp;nbsp; An app that was working will suddenly start crashing.&lt;/P&gt;&lt;P&gt;I went ahead and created a TestFlight app for the original&amp;nbsp;&lt;SPAN&gt;ArcGIS-arm64.framework&lt;/SPAN&gt; issue and this works fine on the same device (iPhone 11) that I used to sideload the app using Hot Restart.&amp;nbsp; I also repro-ed the issue with Hot Restart yesterday using an up to date Visual Studio + Xamarin/ESRI Nuget packages.&lt;/P&gt;&lt;P&gt;I'm coming to the conclusion that Hot Restart is not a practical option for dev.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 13:17:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/app-crash-using-hot-restart-xamarin-forms-on-ios/m-p/1095735#M10418</guid>
      <dc:creator>ChrisDalla_Piazza</dc:creator>
      <dc:date>2021-09-06T13:17:52Z</dc:date>
    </item>
  </channel>
</rss>

