Forum Xamarin.iOS

App crashes in debug/release mode when used MPMoviePlayerController (iOS13)

OnurHazarOnurHazar USUniversity ✭✭✭

Hello, my app crashes when it comes to create the video control (MPMoviePlayerController - deprecated) at runtime (both in debug/release) and I can't get any crash logs from it. I updated xcode 11 and latest version of VS for Mac. It was working before the update. The app which is built with previous tools is also working in iOS13 device. I definitely have a plan to replace the deprecated control but I didn't see anything on your documentation about MPMoviePlayerController will be removed completely in iOS 13. Is it completely removed in Xamarin SDKs? If yes, how is it possible to use the control in code without getting any build error?

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

Version 8.3.2 (build 32)
Installation UUID: 4acdf54b-2f8d-4f12-904c-6f582f7e48d8
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 5.16.1.24 (d16-3 / 08809f5b)

Package version: 604000208

=== Mono Framework MDK ===

Runtime:
Mono 6.4.0.208 (2019-06/07c23f2ca43) (64-bit)
Package version: 604000208

=== NuGet ===

Version: 5.3.0.6192

=== .NET Core SDK ===

SDK: /usr/local/share/dotnet/sdk/3.0.100/Sdks
SDK Versions:
3.0.100
2.1.701
2.1.700
2.1.505
2.1.504
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/6.4.0/lib/mono/msbuild/Current/bin/Sdks

=== .NET Core Runtime ===

Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
3.0.0
2.1.13
2.1.12
2.1.8

=== Xamarin.Profiler ===

'/Applications/Xamarin Profiler.app' not found

=== Updater ===

Version: 11

=== Apple Developer Tools ===

Xcode 11.1 (15405)
Build 11A1027

=== Xamarin.Mac ===

Version: 6.2.0.47 (Visual Studio Community)
Hash: c2cbd3480
Branch: d16-3
Build date: 2019-09-30 22:37:32-0400

=== Xamarin.iOS ===

Version: 13.2.0.47 (Visual Studio Community)
Hash: c2cbd3480
Branch: d16-3
Build date: 2019-09-30 22:37:32-0400

=== Xamarin Designer ===

Version: 16.3.0.247
Hash: 52eac1a9e
Branch: remotes/origin/d16-3
Build date: 2019-10-03 23:04:28 UTC

=== Xamarin.Android ===

Version: 10.0.3.0 (Visual Studio Community)
Commit: xamarin-android/d16-3/4d45b41
Android SDK: /Users/onur.hazar/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
8.1 (API level 27)

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

Build Information:
Mono: mono/mono/[email protected]
Java.Interop: xamarin/java.interop/[email protected]
LibZipSharp: grendello/LibZipSharp/[email protected]
LibZip: nih-at/libzip/[email protected]
ProGuard: xamarin/proguard/[email protected]
SQLite: xamarin/sqlite/[email protected]
Xamarin.Android Tools: xamarin/xamarin-android-tools/[email protected]

=== Microsoft Mobile OpenJDK ===

Java SDK: /Users/onur.hazar/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: 1.4.0.65
Hash: c33b107
Branch: remotes/origin/d16-3
Build date: 2019-09-19 20:42:44 UTC

=== Android Device Manager ===

Version: 1.2.0.115
Hash: 724ea69
Branch: remotes/origin/d16-3
Build date: 2019-09-19 20:43:06 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: 803020032
Git revision: cac56af22091d80a4c339532595ed90228d87eb0
Build date: 2019-10-04 06:43:01+00
Build branch: release-8.3
Xamarin extensions: 2fc34e1d5c594f52abf0e0e9e14f4945adec6c7f

=== Operating System ===

Mac OS X 10.14.6
Darwin 18.7.0 Darwin Kernel Version 18.7.0
Tue Aug 20 16:57:14 PDT 2019
root:xnu-4903.271.2~2/RELEASE_X86_64 x86_64

=== Enabled user installed extensions ===

Telerik Xamarin Add-in 2019.2.513

Posts

  • Imran_619Imran_619 Member ✭✭✭

    This kind of crash only happens on the versions between iOS 9.0.2 and iOS 9.2.x, and only on the apps from App Store. The stack information just points to the function which call the method "loadNibNamed:owner:options". It confuses us.

    When you install the app to the device on debug mode or release mode through Xcode, it's normal and will not encounter this crash any longer.

    In Xcode 8 or Xcode 9, when your project contains the picture which DisplayGamut is P3 or Encoding is ARGB-16, this kind of crash will happens on the device who download the app from App Store. So it's smart to replace the picture. The fastest way is as follows:

    1.find the Assets.car file in the .ipa

    2.use assetutil command to product pictures' json, just like this:

    sudo xcrun --sdk iphoneos assetutil --info Assets.car > Assets.json

    3.it's easy to find "DisplayGamut": "P3" string in the Assets.json;

    just replace the picture with a new one.

    For more information on mobile app development you can visit ArStudioz

Sign In or Register to comment.