question

AlvinKwong-8700 avatar image
18 Votes"
AlvinKwong-8700 asked TalZana-1334 commented

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

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

dotnet-xamarinforms
· 27
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.

same problem here

0 Votes 0 ·

Same here and I don't even see the simulators. I can't work anymore so please this is urgent!

0 Votes 0 ·

same for me

0 Votes 0 ·

Same problem here. Does not run on device and no simulators are showing.

An urgent fix is needed as iOS 15 is now live.

0 Votes 0 ·
Show more comments
WenyanZhang-MSFT avatar image
0 Votes"
WenyanZhang-MSFT answered TalZana-1334 commented

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.


· 1
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.

Potentially bugs on IOS 15 ... Downgrading is a sustainable solution?

0 Votes 0 ·
NK-6385 avatar image
0 Votes"
NK-6385 answered KhromovNikita-2415 commented

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

· 1
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.

I guess xcode 12.5 won't work with iOS 15..

0 Votes 0 ·
EricGozlan-6569 avatar image
0 Votes"
EricGozlan-6569 answered MikeRoseberry-8112 commented

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

· 1
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.

Worked for me as well.

0 Votes 0 ·
lukiller-7518 avatar image
0 Votes"
lukiller-7518 answered

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.


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.

TrevorBond-2608 avatar image
0 Votes"
TrevorBond-2608 answered TrevorBond-2608 edited

From the GitHub link

If you need to keep Xcode 13 but want to use our current stable d16-10 bits you will need to install the following in you macOS machine

https://bosstoragemirror.blob.core.windows.net/wrench/d16-10/2566861a9e0495d6f3c2c303ef3924be3a9f49a7/5024030/package/notarized/xamarin.ios-14.20.0.27.pkg

https://bosstoragemirror.blob.core.windows.net/wrench/d16-10/2566861a9e0495d6f3c2c303ef3924be3a9f49a7/5024030/package/notarized/xamarin.mac-7.14.0.27.pkg

This worked for me. Visual Studio 2019 Mac Community 8.10.9 (build 3), Xcode 13, Mac OS 11.6 Big Sur

All simulators back and at iOS 15. Running on device on iOS 15.0

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.

XamDev-9530 avatar image
0 Votes"
XamDev-9530 answered

I downgraded the Xcode to 12.x and all the simulators are working with this version.

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.

AlvinKwong-8700 avatar image
2 Votes"
AlvinKwong-8700 answered

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.

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.

AFVitalySokolov avatar image
0 Votes"
AFVitalySokolov answered

Solution:

For me it worked after updating Xamarin.iOS to the version that supports XCode 13 from this thread - https://github.com/xamarin/xamarin-macios/issues/12778

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.

LarryFeldman-7069 avatar image
0 Votes"
LarryFeldman-7069 answered

Just updated VS to 8.10.10 (build 8). Everything appears to be working again.

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.