Xamarin.iOS Updated this morning, app no longer launches

Hi,

I am currently developing an app which I left in a working, build-able, run-able state when I left work yesterday evening.

This morning, I updated Xamarin.iOS (I now have v10.8 on the Mac and v10.8.0.174 on my windows machine where Visual Studio runs). These version numbers are reported in the log on my windows machine C:\Users\\AppData\Local\Xamarin\Logs...

Since this, when I try to deploy the application to my device (iPhone 6S running iOS 10.3.1) it displays the Launch Screen then crashes almost immediately.

  • I do not hit my breakpoints in either my main App.cs class, or any of the launching events in AppDelegate.cs in the iOS project.
  • The Debug Output in Visual Studio only outputs the following:
    Launching 'SynantixMobile.iOS' on 'Dave’s iPhone'... The app has been terminated. Launch succeeded. The app 'SynantixMobile.iOS' has been successfully launched on 'Dave’s iPhone'.

  • Browsing to '/Library/Frameworks/Xamarin.iOS.framework/Versions/' the Mac, reveals a folder called '10.8.0.175' (yet another different version number)

If I deploy to an iPhone Simulator, I get the following error:
2017-04-25 10:55:55.493 SynantixMobile.iOS[2614:25260] warning: cant resolve internal call to "System.Reflection.AssemblyName::GetNativeName(intptr)" (tested without signature also) 2017-04-25 10:55:55.494 SynantixMobile.iOS[2614:25260] Your mono runtime and class libraries are out of sync. 2017-04-25 10:55:55.494 SynantixMobile.iOS[2614:25260] The out of sync library is: /Users/davecox/Library/Developer/CoreSimulator/Devices/F728465E-AFF4-4B18-AB36-686ECFBEC10A/data/Containers/Bundle/Application/15286A38-2D2B-41DE-8D80-FE4A145A63D3/SynantixMobile.iOS.app/.monotouch-64/mscorlib.dll 2017-04-25 10:55:55.494 SynantixMobile.iOS[2614:25260] When you update one from git you need to update, compile and install the other too.

So it seems that the update has resulted in incorrect versions - but how do I fix this? There are no further updates available, I'm not sure how to repair this. Is it possible to roll back the update that was applied this morning? Does anyone have any other bright ideas?

Thanks,
Dave

Answers

  • JohnMillerJohnMiller USForum Administrator, Xamarin Team Xamurai

    @DaveCox,

    Could you post your complete version info from VS and XS on the Mac? I'll use that to confirm if things are matching/correct.

    You might also try quickly deleting the bin/obj folders and uninstall the app from the device to make sure it's a fresh build and confirm if the error continues.

  • DaveCoxDaveCox USMember

    Hi JohnMiller,

    Thanks for the help - I have previously tried cleaning/rebuilding the solution, all combinations of clearing/resetting/rebooting but no joy.

    Can you let me know specifically what you want the versions of? I am relatively new to Xamarin... However I did dig out the following information - might well be more than you need.

    Visual Studio Version Info Dump
    Microsoft Visual Studio Professional 2015
    Version 14.0.25431.01 Update 3
    Microsoft .NET Framework
    Version 4.6.01586

    Installed Version: Professional
    
    LightSwitch for Visual Studio 2015   00322-40000-00000-AA888
    Microsoft LightSwitch for Visual Studio 2015
    
    Visual Basic 2015   00322-40000-00000-AA888
    Microsoft Visual Basic 2015
    
    Visual C# 2015   00322-40000-00000-AA888
    Microsoft Visual C# 2015
    
    Visual C++ 2015   00322-40000-00000-AA888
    Microsoft Visual C++ 2015
    
    Windows Phone SDK 8.0 - ENU   00322-40000-00000-AA888
    Windows Phone SDK 8.0 - ENU
    
    AnkhSVN - Subversion Support for Visual Studio   2.6.12735.14
    AnkhSVN - Subversion Support for Visual Studio 2.6.12735.14 
     * Ankh.Package 2.6.12735.14
     * Subversion 1.9.2 via SharpSvn 1.9002.3777.76
    
    SharpSvn is linked to: Apr 1.5.1, Apr-util 1.5.4, Cyrus Sasl 2.1.26, eXpat 2.1.0, LibSSH2 1.6.0, OpenSSL 1.0.2d 9 Jul 2015, Serf 1.3.8, SQLite 3.8.11.1, Subversion 1.9.2-SharpSvn, Utf8proc 1.1.5, ZLib 1.2.8
    SharpSvn is optionally linked to: Berkeley DB 4.4.20, SharpPlink 0.65.0(SharpSvn)
    
    Application Insights Tools for Visual Studio Package   7.18.00214.2
    Application Insights Tools for Visual Studio
    
    ASP.NET and Web Tools 2015.1 (Beta8)   14.1.11107.0
    ASP.NET and Web Tools 2015.1 (Beta8)
    
    ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
    For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563
    
    ASP.NET Web Frameworks and Tools 2013   5.2.40314.0
    For additional information, visit http://www.asp.net/
    
    Common Azure Tools   1.8
    Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
    
    JavaScript Language Service   2.0
    JavaScript Language Service
    
    JavaScript Project System   2.0
    JavaScript Project System
    
    Merq   1.1.17-rc (cba4571)
    Command Bus, Event Stream and Async Manager for Visual Studio extensions.
    
    Microsoft Azure Mobile Services Tools   1.4
    Microsoft Azure Mobile Services Tools
    
    Mono Debugging for Visual Studio   Mono.Debugging.VisualStudio
    Support for debugging Mono processes with Visual Studio.
    
    NuGet Package Manager   3.4.4
    NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
    
    PreEmptive Analytics Visualizer   1.2
    Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
    
    SQL Server Data Tools   14.0.60519.0
    Microsoft SQL Server Data Tools
    
    Telerik ASP.NET AJAX VSExtensions   2017.1.327.0
    Telerik UI for ASP.NET AJAX VSExtensions
    
    TypeScript   1.8.36.0
    TypeScript tools for Visual Studio
    
    Visual Studio Tools for Universal Windows Apps   14.0.25527.01
    The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.
    
    Xamarin   4.4.0.34 (3f99c5a)
    Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
    
    Xamarin.Android   7.2.0.7 (b16fb82)
    Visual Studio extension to enable development for Xamarin.Android.
    
    Xamarin.iOS   10.8.0.174 (7656cc6)
    Visual Studio extension to enable development for Xamarin.iOS.
    

    Xamarin Studio (Mac) Version Info Dump
    === Xamarin Studio Community ===

    Version 6.3 (build 863)
    Installation UUID: 49f16ef5-d1aa-44ee-9722-c5f6639cb5af
    Runtime:
        Mono 4.8.1 (mono-4.8.0-branch/22a39d7) (64-bit)
        GTK+ 2.24.23 (Raleigh theme)
    
        Package version: 408010000
    
    === NuGet ===
    
    Version: 3.5.0.0
    
    === Xamarin.Profiler ===
    
    Version: 1.4.0
    Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
    
    === Apple Developer Tools ===
    
    Xcode 8.3.2 (12175)
    Build 8E2002
    
    === Xamarin.iOS ===
    
    Version: 10.8.0.175 (Xamarin Studio Community)
    Hash: a04678c2
    Branch: d15-1
    Build date: 2017-03-28 14:05:38-0400
    
    === Xamarin Inspector ===
    
    Version: 1.2.2
    Hash: b71b035
    Branch: d15-1
    Build date: Fri, 21 Apr 2017 17:57:12 GMT
    
    === Xamarin.Android ===
    
    Version: 7.2.0.7 (Xamarin Studio Community)
    Android SDK: /Users/davecox/Library/Developer/Xamarin/android-sdk-macosx
        Supported Android versions:
            6.0 (API level 23)
    
    SDK Tools Version: 25.1.2
    SDK Platform Tools Version: 24.0.0
    SDK Build Tools Version: 23.0.2
    
    Java SDK: /usr
    java version "1.8.0_101"
    Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
    Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
    
    Android Designer EPL code available here:
    https://github.com/xamarin/AndroidDesigner.EPL
    
    === Xamarin.Mac ===
    
    Version: 3.2.0.175 (Xamarin Studio Community)
    
    === Build Information ===
    
    Release ID: 603000863
    Git revision: a2163670efe259c85cd8f335d95b175068fbbe2a
    Build date: 2017-04-03 14:33:15-04
    Xamarin addins: 2045d688ea1420e0381b473360ca62a763eb7d04
    Build lane: monodevelop-lion-d15-1
    
    === Operating System ===
    
    Mac OS X 10.12.4
    Darwin Daves-Mac-mini.local 16.5.0 Darwin Kernel Version 16.5.0
        Fri Mar  3 16:52:33 PST 2017
        root:xnu-3789.51.2~3/RELEASE_X86_64 x86_64
    
  • DaveCoxDaveCox USMember

    Issue resolved by full uninstall/reinstall of Xamarin. Probably overkill, but it did the job.

  • Abhijeet_SuryaAbhijeet_Surya USMember ✭✭✭

    @JohnMiller @DaveCox , My is some what similar issue.

    I am able to run the app is Debug mode to actual phone (IOS 10.3)
    But App Store build crashes on launch on same phone.

    App has Media, Permission plugin, MobileCenter, AdMob.

  • ThomasBowenThomasBowen USMember ✭✭

    Reinstalling Xamarin is definitely overkill. I had this issue today, and fixed it by cleaning the solution and restarting Visual Studio.

  • NMackayNMackay GBInsider, University ✭✭✭✭✭

    Had the same issue, upgrading to the latest xcode and set the SDK version to 11.1, cleaning & deleting all obj & bin and the vs folder, restart and compile and it eventually worked.

  • NMackayNMackay GBInsider, University ✭✭✭✭✭

    @JohnMiller

    Some nasty issues in the latest SR2 stable.

    Cleaning the solution randomly hangs visual studio.
    PCL has issues, you can't open XAML files sometimes (The Extender Provider failed to return an Extender for the Object).

  • NMackayNMackay GBInsider, University ✭✭✭✭✭

    @JohnMiller

    Also seeing regression bugs from last year, you now have to recompile the PCL in iOS or Visual Studio will ignore the changes and just launch the last build.

    Cleaned all component caches/temp etc but no difference.

  • JohnMillerJohnMiller USForum Administrator, Xamarin Team Xamurai
    edited November 8

    @NMackay,

    Hmm, please file those issues in bugzilla (Xamarin.iOS) with as much detail as you can so we can start tracking and investigating. If this is more IDE related, you can use the Help > Report a Problem feature of Visual Studio. Feel free to ping me with some links so I can review quickly. Thanks!

  • NMackayNMackay GBInsider, University ✭✭✭✭✭

    @JohnMiller

    Thanks for responding.

    Several cleans of solutions, cleaning temp and component cache and several reboots of the mac and PC and it's better today. I'll keep a close eye as one app was worse than the other but the other team member hasn't experienced the same issues yet.

    If I can repo these issues I'll look then and send you the bugzillas

  • NMackayNMackay GBInsider, University ✭✭✭✭✭

    @JohnMiller

    The clean issue is a major pain.

    • Clean the solution, seems to reconnect to the mac, cleans 14 projects, clean succeeds but compile & stop greyed out
    • Kill msbuild & kill Visual VS2015 via taskman
    • Open solution and Visual Studio hangs
    • Kill Visual VS2015 via taskman
    • Delete .vs folder
    • Solution opens okay

    Unfortunately there is nothing in the windows logs.

    Is this a known issue?

    Microsoft Visual Studio Enterprise 2015
    Version 14.0.25431.01 Update 3
    Microsoft .NET Framework
    Version 4.7.02046

    Win10 x64

    Mono Debugging for Visual Studio 4.7.4-pre (c2d89eb)
    Support for debugging Mono processes with Visual Studio.

    Visual Studio Tools for Universal Windows Apps 14.0.25527.01
    The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

    VisualStudio.Mac 1.0
    Mac Extension for Visual Studio

    Xamarin 4.7.10.33 (70936af)
    Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

    Xamarin.Android 8.0.2.1 (c2a33d8)
    Visual Studio extension to enable development for Xamarin.Android.

    Xamarin.iOS 11.2.1.0 (12e80e0)
    Visual Studio extension to enable development for Xamarin.iOS.

Sign In or Register to comment.