Xamarin Error HE0003 - Could not load the framework 'IBFoundation'

Alvin Kwong 121 Reputation points

After updating the XCode to 13 and the macOS to 11.6, when I try to deploy the Xamarin iOS app to the physical device,
the error HE0003 - Could not load the framework 'IBFoundation' is shown.

I took a look into the XCode application folder, indeed it does not contain the IBFoundation file.
(path: /Applications/Xcode.app/Contents/Frameworks/IBFoundation.framework/IBFoundation)

I did launch the XCode to install the components required.

Below is the system info
=== Visual Studio Community 2019 for Mac ===

Version 8.10.9 (build 3)
Installation UUID: fe52cc69-1795-4896-be80-9455d41493e9
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac (d16-6 / 088c73638)

Package version: 612000140

=== Mono Framework MDK ===

Mono (2020-02/51d876a041e) (64-bit)
Package version: 612000140

=== Roslyn (Language Service) ===


=== NuGet ===


=== .NET Core SDK ===

SDK: /usr/local/share/dotnet/sdk/5.0.401/Sdks
SDK Versions:
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:

=== .NET Core 3.1 SDK ===

SDK: 3.1.413

=== Xamarin.Profiler ===

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

=== Updater ===

Version: 11

=== Apple Developer Tools ===

Xcode 13.0 (19234)
Build 13A233

=== Xamarin.Mac ===

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

=== Xamarin.iOS ===

Version: (Visual Studio Community)
Hash: c4b89cddb
Branch: d16-10
Build date: 2021-06-15 22:03:01-0400

=== Xamarin Designer ===

Hash: 36a2d986f
Branch: remotes/origin/d16-10
Build date: 2021-06-02 19:41:34 UTC

=== Xamarin.Android ===

Version: (Visual Studio Community)
Commit: xamarin-android/d16-10/ae14caf
Android SDK: /Users/sharedaccount/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
5.0 (API level 21)
5.1 (API level 22)
6.0 (API level 23)
7.0 (API level 24)
7.1 (API level 25)
8.0 (API level 26)
8.1 (API level 27)

SDK Tools Version: 26.1.1
SDK Platform Tools Version: 30.0.4
SDK Build Tools Version: 30.0.2

Build Information:
Mono: b4a3858
Java.Interop: xamarin/java.interop/d16-10@f39db25
ProGuard: Guardsquare/proguard/v7.0.1@912d149
SQLite: xamarin/sqlite/3.35.4@85460d3
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-10@c5732a0

=== Microsoft OpenJDK for Mobile ===

Java SDK: /Users/sharedaccount/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25
Android Designer EPL code available here:

=== Android SDK Manager ===

Hash: 1b81df5
Branch: remotes/origin/d16-10
Build date: 2021-08-12 20:43:52 UTC

=== Android Device Manager ===

Hash: 89dcc0b
Branch: remotes/origin/d16-10
Build date: 2021-08-12 20:44:10 UTC

=== Build Information ===

Release ID: 810090003
Git revision: 156eb53c9c668cb7ff4311ae3d1dab894549848b
Build date: 2021-09-08 07:26:54-04
Build branch: release-8.10

=== Operating System ===

Mac OS X 10.16.0
Darwin 20.6.0 Darwin Kernel Version 20.6.0
Mon Aug 30 06:12:20 PDT 2021
root:xnu-7195.141.6~3/RELEASE_ARM64_T8101 x86_64

A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 29,306 Reputation points Microsoft Vendor

    Welcome to our Microsoft Q&A platform!
    XCode13 is not yet supported in Xamarin.iOS, you could try to downgrade Xcode (open this link, sign in with your apple developer account, select Xcode to download and install).
    There are also 2 options for you If you need to keep Xcode 13, for more information you can refer to

    Best Regards,
    Wenyan Zhang

    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

8 additional answers

Sort by: Most helpful
  1. Alvin Kwong 121 Reputation points

    As others have already referred to the link https://github.com/xamarin/xamarin-macios/issues/12778

    I have downloaded and installed the Xamarin.ios- and now everything works fine finally.
    The simulators are showing up again and there is no problem deploying the app on the physical devices (iOS15 and <iOS15 both work fine).

    It is believed that this version will be released very soon as mentioned in the thread. Therefore if it is not urgent, you can wait for the Visual Studio updates. Or if it is urgent, download the above package from the link and install it manually.

    Thanks for all the input. It is greatly appreciated.

    2 people found this answer helpful.
    0 comments No comments

  2. NK 1 Reputation point

    Looks like Xcode 13 changed the Interface Builder (IB), I'm not sure why deploying the solution is hanging on this, IB shouldn't be required just to connect the debugger (esp if Hot Restart is not required)

    Downgrading to Xcode 12.5 would like restore the IBFoundation.framework in the location VS is looking for, but that's not an option in my case

  3. Eric Gozlan 1 Reputation point

    I had same problem today ; i downgrade Xcode13 to Xcode 12.5.1 No simulator but it works with physical devices

    for downgrade : https://developer.apple.com/download/all/?q=for%20Xcode%2012

  4. lukiller 1 Reputation point

    The second solution published here https://github.com/xamarin/xamarin-macios/issues/12778 worked for me on VS 8.10.9, Xcode 13 and iOS 15. I only installed xamarin.ios- package.

    0 comments No comments