Start a new topic

Can't run Xamarin Samples on iPhone (crash on start)

Hi, 

I have an iPhone X with iOS 13.3.1. I'm working with Visual Studio for Mac version 8.5 (build 3183) and Xamarin.Wikitude.SDK.JS (8.10.0). There are other tools details:

  

=== Visual Studio Community 2019 for Mac ===

Version 8.5 (build 3183)
Installation UUID: e59a8edb-7944-418f-93ec-652dfad481a2
	GTK+ 2.24.23 (Raleigh theme)
	Xamarin.Mac 6.14.1.39 (d16-5 / 30e8706b4)

	Package version: 608000123

=== Mono Framework MDK ===

Runtime:
	Mono 6.8.0.123 (2019-10/1d0d939dc30) (64-bit)
	Package version: 608000123

=== Roslyn (Language Service) ===

3.5.0-beta4-20125-04+1baa0b3063238ed752ad1f0368b1df6b6901373e

=== NuGet ===

Versione: 5.4.0.6315

=== .NET Core SDK ===

SDK: /usr/local/share/dotnet/sdk/3.1.102/Sdks
Versioni SDK:
	3.1.102
	3.1.101
	3.1.100
	3.1.100-preview3-014645
	3.0.100
SDK di MSBuild: /Library/Frameworks/Mono.framework/Versions/6.8.0/lib/mono/msbuild/Current/bin/Sdks

=== Runtime di .NET Core ===

Runtime: /usr/local/share/dotnet/dotnet
Versioni runtime:
	3.1.2
	3.1.1
	3.1.0
	3.1.0-preview3.19553.2
	3.0.0
	2.1.16
	2.1.15
	2.1.14
	2.1.13

=== Xamarin.Profiler ===

Versione: 1.6.12.26
Percorso: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Updater ===

Versione: 11

=== Apple Developer Tools ===

Xcode 11.3.1 (15715)
Build 11C504

=== Xamarin.Mac ===

Xamarin.Mac not installed. Can't find /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/Version.

=== Xamarin.iOS ===

Version: 13.14.1.39 (Visual Studio Community)
Hash: 30e8706b4
Branch: d16-5
Build date: 2020-02-20 16:41:48-0500

=== Xamarin Designer ===

Version: 16.5.0.471
Hash: 35aa4889d
Branch: remotes/origin/d16-5
Build date: 2020-02-25 00:52:08 UTC

=== Xamarin.Android ===

Versione: 10.2.0.100 (Visual Studio Community)
Commit: xamarin-android/d16-5/988c811
Android SDK: /Users/kondao/Library/Developer/Xamarin/android-sdk-macosx
	Supported Android versions:
		8.1 (API level 27)

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 28.0.2
SDK Build Tools Version: 28.0.3

Build Information: 
Mono: c0c5c78
Java.Interop: xamarin/java.interop/d16-5@fc18c54
ProGuard: xamarin/proguard/master@905836d
SQLite: xamarin/sqlite/3.28.0@46204c4
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-5@9f4ed4b

=== Microsoft Mobile OpenJDK ===

Java SDK: /Users/kondao/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Android SDK Manager ===

Version: 16.5.0.39
Hash: 6fb4c79
Branch: remotes/origin/d16-5
Build date: 2020-02-20 23:25:56 UTC

=== Android Device Manager ===

Version: 16.5.0.71
Hash: 49194e8
Branch: remotes/origin/d16-5
Build date: 2020-02-20 23:26:18 UTC

=== Xamarin Inspector ===

Version: 1.4.3
Hash: db27525
Branch: 1.4-release
Build date: Mon, 09 Jul 2018 21:20:18 GMT
Client compatibility: 1

=== Build Information ===

Release ID: 805003183
Git revision: 60e06e010baa677204535600661dda3fb4677c2f
Build date: 2020-03-20 06:18:03-04
Build branch: release-8.5
Xamarin extensions: 60e06e010baa677204535600661dda3fb4677c2f

=== Operating System ===

Mac OS X 10.15.3
Darwin 19.3.0 Darwin Kernel Version 19.3.0
    Thu Jan  9 20:58:23 PST 2020
    root:xnu-6153.81.5~1/RELEASE_X86_64 x86_64
 

I haven't been able to start any applications containing the Wikitude framework since a month. I think it's related to the iOS 13.3.1 update but I'm not sure. When I start the application, the following warning message appears (not always, only sometimes):


image

But I don't know if this is also related because, even in the past months, it had appeared to me but the applications have always started. Now if I run any app with Wikitude framework, it crashes. I am attaching a video while I try to start your "Xamarin Examples" application (the latest relase downloaded from Git Hub) without success. No other errors appear in the Visual Studio console. Other apps without your framework work perfectly. Can you help me?
Thanks,

Vincenzo

MP4
1 Comment

Hello Vincenzo,


I had the same issue. Here are the steps I took to get it running :

  • Migrate from package.json to the new solution (left click on it in the hierarchy under your iOS project)
  • Update all the nugets
  • Clean build
  • Ensure to delete the bin and obj folder in the iOS folder if any left (I had issue with cleaning)
  • Clean build again just to be sure
  • Delete the app on your target device
  • build and run

I'm not really sure what actually solved the issue in those manipulations, but I didn't want to investigate further as I never had this issue with my own app.

Cheers,
Login or Signup to post a comment