xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

[Bug] Adding a reference from an iOS project to a binding project with .xcframework raises Failed to resolve assembly #15155

Open vas1l3nk opened 2 years ago

vas1l3nk commented 2 years ago

Description

When I add a link to a binding project with .xcframework from my XF.Sample.iOS project, I get the error:
Error MT2002: Failed to resolve assembly: 'SDK.Bindings.iPhone, Version=1.0.8081.21403, Culture=neutral, PublicKeyToken=null' (MT2002)

Steps to Reproduce

  1. Create binding iOS project with .xcframework
  2. Create XF application
  3. Add reference from XF.iOS to the binding

Expected Behavior

The project can refer to the binding project

Actual Behavior

Error MT2002: Failed to resolve assembly: 'SDK.Bindings.iPhone, Version=1.0.8081.21403, Culture=neutral, PublicKeyToken=null' (MT2002)

Basic Information

Environment


Version 8.10.18 (build 11)
Installation UUID: 13321cff-c5a8-4deb-b949-21ce29bfdb46
    GTK+ 2.24.23 (Raleigh theme)
    Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)

    Package version: 612000162

=== Mono Framework MDK ===

Runtime:
    Mono 6.12.0.162 (2020-02/2ca650f1f62) (64-bit)
    Package version: 612000162

=== Roslyn (Language Service) ===

3.10.0-4.21269.26+029847714208ebe49668667c60ea5b0a294e0fcb

=== NuGet ===

Version: 5.9.0.7134

=== .NET SDK (x64) ===

SDK: /usr/local/share/dotnet/x64/sdk/6.0.102/Sdks
SDK Versions:
    6.0.102
    6.0.101
    5.0.405
    5.0.404
    5.0.210
    3.1.416
MSBuild SDKs: /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Sdks

=== .NET Core Runtime ===

Runtime: /usr/local/share/dotnet/x64/dotnet
Runtime Versions:
    6.0.2
    6.0.1
    5.0.14
    5.0.13
    3.1.22

=== .NET Core 3.1 SDK ===

SDK: 3.1.416

=== .NET 5.0 SDK ===

SDK: 5.0.405

=== Xamarin.Profiler ===

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

=== Updater ===

Version: 11

=== Xamarin.Android ===

Version: 12.0.0.3 (Visual Studio Community)
Commit: xamarin-android/d16-11/f0e3c2d
Android SDK: /Users/ihar/Library/Developer/Xamarin/android-sdk-macosx
    Supported Android versions:
        5.0 (API level 21)
        7.1 (API level 25)
        8.0 (API level 26)

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

Build Information: 
Mono: c633fe9
Java.Interop: xamarin/java.interop/d16-11@476bb5b
ProGuard: Guardsquare/proguard/v7.0.1@912d149
SQLite: xamarin/sqlite/3.35.4@85460d3
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-11@87af37b

=== Eclipse Temurin JDK ===

Java SDK: Not Found

=== Android SDK Manager ===

Version: 16.10.0.13
Hash: 1b81df5
Branch: remotes/origin/d16-10
Build date: 2021-11-12 01:17:32 UTC

=== Android Device Manager ===

Version: 16.10.0.15
Hash: 89dcc0b
Branch: remotes/origin/d16-10
Build date: 2021-11-12 01:17:52 UTC

=== Apple Developer Tools ===

Xcode 13.2.1 (19586)
Build 13C100

=== Xamarin.Mac ===

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

=== Xamarin.iOS ===

Version: 15.4.0.0 (Visual Studio Community)
Hash: 8fc41ae82
Branch: xcode13.2
Build date: 2021-12-09 01:07:56-0500

=== Xamarin Designer ===

Version: 16.11.0.60
Hash: 56f9b80b0
Branch: remotes/origin/d16-11
Build date: 2021-12-15 02:44:16 UTC

=== Build Information ===

Release ID: 810180011
Git revision: 5b68fe210d29028414f15a937514bdbd3178e774
Build date: 2022-01-31 14:47:37-05
Build branch: release-8.10

=== Operating System ===

Mac OS X 11.4.0
Darwin 20.5.0 Darwin Kernel Version 20.5.0
    Sat May  8 05:10:31 PDT 2021
    root:xnu-7195.121.3~9/RELEASE_ARM64_T8101 x86_64
vas1l3nk commented 2 years ago

@jfversluis Hi. xamarin.forms resolved the link to the binding project with .xcframework. but after that: waiting for debugger to connect to the ios simulator message starts and the app doesn't load in the iOS simulator.

Reset the simulator does not help.