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

Alvin Kwong 121 Reputation points
2021-09-21T10:04:21.017+00:00

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 6.18.0.23 (d16-6 / 088c73638)

Package version: 612000140

=== Mono Framework MDK ===

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

=== Roslyn (Language Service) ===

3.10.0-4.21269.26+029847714208ebe49668667c60ea5b0a294e0fcb

=== NuGet ===

Version: 5.9.0.7134

=== .NET Core SDK ===

SDK: /usr/local/share/dotnet/sdk/5.0.401/Sdks
SDK Versions:
5.0.401
5.0.400
5.0.302
5.0.301
3.1.413
3.1.412
3.1.411
3.1.410
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.10
5.0.9
5.0.8
5.0.7
3.1.19
3.1.18
3.1.17
3.1.16

=== .NET Core 3.1 SDK ===

SDK: 3.1.413

=== Xamarin.Profiler ===

Version: 1.6.15.68
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: 14.20.0.24 (Visual Studio Community)
Hash: c4b89cddb
Branch: d16-10
Build date: 2021-06-15 22:03:01-0400

=== Xamarin Designer ===

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

=== Xamarin.Android ===

Version: 11.3.0.4 (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
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Android SDK Manager ===

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

=== Android Device Manager ===

Version: 16.10.0.15
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

Xamarin
Xamarin
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
    2021-09-22T05:31:08.713+00:00

    Hello,
    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
    https://github.com/xamarin/xamarin-macios/issues/12778

    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
    2021-09-24T05:31:16.603+00:00

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

    I have downloaded and installed the Xamarin.ios-15.0.0.6.pkg 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
    2021-09-21T19:11:09.497+00:00

    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
    2021-09-22T01:59:02.68+00:00

    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
    2021-09-22T11:49:55.917+00:00

    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-14.20.0.27.pkg package.

    0 comments No comments