question

StevenYang-7191 avatar image
0 Votes"
StevenYang-7191 asked RobCaplan edited

Xamarin iOS Private Nuget no longer working "Assertion at / Users/builder/jenkins/workspace/archive-mono/2020-02/ios/release/mono/mini/ aot-runtime.c:1838, condition `data' not met"

Please describe the issue in 2-3 sentences. Include what you're trying to accomplish when the issue occurs.
My private nuget I built worked fine before I stopped working on it(Last commit for any Xamarin/Nuget stuff 1/21/21). Now it's no longer working.

When did it begin and how often does it occur?
The last time I worked on the nuget was 1/21/21. Now it's just not working completely when declare anything from the nuget. Maybe it's the way I'm building the bindings and nuget(I haven;t changed anything)?

What errors do you see?
Launched application 'com.companyname.testing-app-for-ios' on 'Igor???s iPhone' with pid 2572
Loaded assembly: /private/var/containers/Bundle/Application/19CA1885- BDDC-4096-A35A-027811BBC53E/testing_app_for_ios.app/System.dll [External] Loaded assembly: /private/var/containers/Bundle/Application/19CA1885- BDDC-4096-A35A-027811BBC53E/testing_app_for_ios.app/Xamarin.iOS.dll [External]
2021-05-11 10:29:39.024 testing_app_for_ios[2572:1198718] error: * Assertion at / Users/builder/jenkins/workspace/archive-mono/2020-02/ios/release/mono/mini/ aot-runtime.c:1838, condition `data' not met
============================================================ =====
Native Crash Reporting
============================================================ =====
Got a abrt while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application. ============================================================ =====

What's the environment and are there recent changes?
Probably the version? I swapped computers since the last time i've worked on it. But I was able to reproduce it on another colleague's computer with the latest version of Xcode and Xamarin.

What have you tried to troubleshoot this?
Release, debug. LLVM, no llvm. Enable/Disable Mono Interpreter. With nuget and without(App runs fine without nuget).

Note:
This is not the real project as it is propiertary. But it should reproduce the same error. I've attached the whole project. There's also a how to on generating the bindings to creating the nuget. Let me know if you need any assistance.

https://www.dropbox.com/s/o1bh38ps0zql7pl/Xamarin%20iOS%20Testing.zip?dl=0

Also attached a PDF with test cases and specs. 95702-xamarin-test-app-errors.pdf


Specs:
=== Visual Studio Community 2019 for Mac ===
Version 8.9.8 (build 7)
Installation UUID: f27a76a0-2ea9-4504-891c-39e1066f937a
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)
Package version: 612000125
=== Mono Framework MDK ===
Runtime:
Mono 6.12.0.125 (2020-02/8c552e98bd6) (64-bit)
Package version: 612000125
=== Roslyn (Language Service) ===
3.9.0-6.21152.10+c10f884b30737542ddd84ca889a4aad9281ce210
=== NuGet ===
Version: 5.8.0.6860
=== .NET Core SDK ===
SDK: /usr/local/share/dotnet/sdk/5.0.202/Sdks
SDK Versions:
5.0.202
5.0.103
3.1.408
3.1.406
MSBuild SDKs: /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Sdks
=== .NET Core Runtime ===
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
5.0.5
5.0.3
3.1.14
3.1.12
=== .NET Core 3.1 SDK ===
SDK: 3.1.408
=== Xamarin.Profiler ===
Version: 1.6.15.68
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
=== Updater ===
Version: 11
=== Apple Developer Tools ===
Xcode 12.4 (17801)
Build 12D4e
=== Xamarin.Mac ===
Version: 7.10.0.5 (Visual Studio Community)
Hash: ab40b131d
Branch: xcode12.5
Build date: 2021-04-22 08:56:41-0400
=== Xamarin.iOS ===
Version: 14.14.2.5 (Visual Studio Community)
Hash: 3836759d4
Branch: d16-9
Build date: 2021-02-10 17:56:44-0500
=== Xamarin Designer ===
Version: 16.9.0.324
Hash: b1e216c75
Branch: remotes/origin/d16-9
Build date: 2021-04-16 00:02:50 UTC
=== Xamarin.Android ===
Version: 11.2.2.1 (Visual Studio Community)
Commit: xamarin-android/d16-9/877f572
Android SDK: /Users/P2916003/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
None installed
SDK Tools Version: 26.1.1
SDK Platform Tools Version: 30.0.4
SDK Build Tools Version: 30.0.2
Build Information:
Mono: 5e9cb6d
Java.Interop: xamarin/java.interop/d16-9@54f8c24
ProGuard: Guardsquare/proguard/v7.0.1@912d149
SQLite: xamarin/sqlite/3.34.1@daff8f4
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-9@d210f11
=== Microsoft OpenJDK for Mobile ===
Java SDK: /Users/P2916003/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.9.0.22
Hash: a391de2
Branch: remotes/origin/dev/bretjohn/readme-tweak~3
Build date: 2021-04-21 21:23:40 UTC
=== Android Device Manager ===
Version: 16.9.0.17
Hash: fc2b3db
Branch: remotes/origin/dev/jmt/d16-9bump~1
Build date: 2021-04-21 21:23:58 UTC
=== Build Information ===
Release ID: 809080007
Git revision: 85b793ce322599fe423c2d233c346b13824ca4d8
Build date: 2021-04-28 12:54:34-04
Build branch: release-8.9
Xamarin extensions: 85b793ce322599fe423c2d233c346b13824ca4d8
=== Operating System ===
Mac OS X 10.15.7
Darwin 19.6.0 Darwin Kernel Version 19.6.0
Mon Apr 12 20:57:45 PDT 2021
root:xnu-6153.141.28.1~1/RELEASE_X86_64 x86_64


dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

StevenYang-7191 avatar image
0 Votes"
StevenYang-7191 answered

Found out what the issue was. Nuget packaging was broken and needs to be fixed. Worked fine if I used the .dll way of importing the library.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.