How to fix CHIP.framework not found when compiling C# Xamarin Project

19dofan 20 Reputation points
2023-12-11T02:15:22.92+00:00

I'm currently trying to create a project on my Mac (Ventura 13.0.1) that reads Bluetooth data.

I'm getting this error:

dyld[11271]: Library not loaded: /System/Library/Frameworks/CHIP.framework/Versions/A/CHIP
  Referenced from: <91869AC4-465B-358C-BE3F-46E11D6368CB> /Users/gabriel/RiderProjects/BrainBluetoothDetection/BrainBluetoothDetection/bin/Debug/BrainBluetoothDetection.app/Contents/MacOS/BrainBluetoothDetection
  Reason: tried: '/System/Library/Frameworks/CHIP.framework/Versions/A/CHIP' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/System/Library/Frameworks/CHIP.framework/Versions/A/CHIP' (no such file), '/System/Library/Frameworks/CHIP.framework/Versions/A/CHIP' (no such file, not in dyld cache), '/Library/Frameworks/CHIP.framework/Versions/A/CHIP' (no such file)

I'm using the latest version of the 32feet library, and I am pretty sure that I have all the necessary packages (I installed IOBluetooth and .Net.Bluetooth). At first, I tried deleting XCode 14 (which seemed to be the problem) and I downloaded 13.4.1. This did not work, and I am still getting the same error. Has anyone else had the same problem?

Developer technologies .NET Xamarin
Developer technologies .NET Other
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 36,436 Reputation points Microsoft External Staff
    2023-12-12T04:40:49.4566667+00:00

    Hello,

    As you @19dofan said, you solved the problem by reinstalling Xamarin with Visual Studio.

    Thanks for your sharing.

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.