AppsFlyerSDK / XamariniOSBinding

AppsFlyer Xamarin iOS Binding project + example app
8 stars 7 forks source link

v6.2.3 Build Error #31

Closed Syed-Esqimo closed 3 years ago

Syed-Esqimo commented 3 years ago

Build failing in AppCenter with the following error:

MTOUCH : error MT2101: Can't resolve the reference 'System.Void ObjCRuntime.ThrowHelper::ThrowArgumentNullException(System.String)', referenced from the method 'System.Void AppsFlyerXamarinBinding.AppsFlyerCrossPromotionHelper::LogAndOpenStore(System.String,System.String,Foundation.NSDictionary,System.Action`2<Foundation.NSUrlSession,Foundation.NSUrl>)' in 'Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'.

sokoloff06 commented 3 years ago

Hi @Syed-Esqimo!

What is the version of Xamarin.iOS do you use?

Syed-Esqimo commented 3 years ago

Hi, good morning @af-vs the build is failing in Microsoft AppCenter with the following config:

Screenshot 2021-03-31 at 09 07 00

Builds fine locally though. Here's the VS information on my machine:

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

Version 8.9.4 (build 25)
Installation UUID: a6c4b376-3c32-4a5d-9c19-3d3ff453eee1
    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.201/Sdks
SDK Versions:
    5.0.201
    5.0.103
    5.0.102
    5.0.101
    5.0.100
    3.1.407
    3.1.406
    3.1.405
    3.1.404
    3.1.403
    3.1.402
    3.1.401
    3.1.302
    3.1.301
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.4
    5.0.3
    5.0.2
    5.0.1
    5.0.0
    3.1.13
    3.1.12
    3.1.11
    3.1.10
    3.1.9
    3.1.8
    3.1.7
    3.1.6
    3.1.5
    2.1.23
    2.1.22
    2.1.21
    2.1.20
    2.1.19

=== .NET Core 3.1 SDK ===

SDK: 3.1.407

=== Xamarin.Profiler ===

Version: 1.6.15.68
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Updater ===

Version: 11

=== Xamarin.Android ===

Version: 11.2.2.1 (Visual Studio Community)
Commit: xamarin-android/d16-9/877f572
Android SDK: /Users/gandalf/Library/Android/sdk
    Supported Android versions:
        6.0 (API level 23)
        8.0 (API level 26)

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 30.0.5
SDK Build Tools Version: 30.0.3

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/gandalf/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/d16-9~2
Build date: 2021-03-24 08:30:26 UTC

=== Android Device Manager ===

Version: 16.9.0.17
Hash: fc2b3db
Branch: remotes/origin/dev/jmt/d16-9bump~1
Build date: 2021-03-24 08:30:44 UTC

=== Apple Developer Tools ===

Xcode 12.4 (17801)
Build 12D4e

=== Xamarin.Mac ===

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

=== 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.316
Hash: 2241b204a
Branch: tags/vsm-rel/d16.9-4540908
Build date: 2021-03-10 21:18:10 UTC

=== Build Information ===

Release ID: 809040025
Git revision: 5d0f80a4343884101c6c7869bc61d5101cf30052
Build date: 2021-03-25 08:43:13-04
Build branch: release-8.9
Xamarin extensions: 5d0f80a4343884101c6c7869bc61d5101cf30052

=== Operating System ===

Mac OS X 10.16.0
Darwin 20.3.0 Darwin Kernel Version 20.3.0
    Thu Jan 21 00:07:06 PST 2021
    root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64

=== Enabled user installed extensions ===

NuGet Package Management Extensions 0.26
NuGet Package Explorer 0.6
sokoloff06 commented 3 years ago

@Syed-Esqimo thanks for the info! Indeed looks like Xamarin.iOS version is the reason for the failure here. We will release shortly a new version of the binding (6.2.4.1) built with the Xamarin.iOS v14.0.0.0 to make sure compatibility with all the 14.x versions that may be used by the host applications.

Thank you!

Syed-Esqimo commented 3 years ago

No problem! But can you please advise which Xamarin.iOS version is compatible with 6.2.4 so I can fix our build pipeline while we wait for the 6.2.4.1 release

sokoloff06 commented 3 years ago

@Syed-Esqimo 6.2.4 should work with 14.14.2.5, same as you have installed locally and which is the latest version of Xamarin.iOS as of today. I am not sure about lower versions compatibility as we used the latest to build the binding.

But no worries, 6.2.4.1 is already available in NuGet :)

https://www.nuget.org/packages/AppsFlyerXamarinBinding/6.2.4.1

Let us know if it solves the issue

Syed-Esqimo commented 3 years ago

Im happy to report the issue has been resolved with 6.2.4.1 release! That was some amazing and quck work Vitaly. Thank you sir!!!

Closing.