AgoraIO-Community / Agora-Unity-RTM-SDK

A Unity3D sample app to show Login /Logout, Log in to/out of channel, Get Channel Member Count, Send/Receive Channel Message, Send Peer Message, Query Member, and token Authentication
24 stars 15 forks source link

Unity FileNotFoundException: Could not find file Modules file inside agoraRTMCWrapper.bundle when building for MacOS #43

Open lukephills opened 2 years ago

lukephills commented 2 years ago

Building for MacOS fails with this error

FileNotFoundException: Could not find file "Assets/AgoraEngine/RTM-Engine/Plugins/macOS/agoraRTMCWrapper.bundle/Contents/Resources/AgoraRtmKit.framework/Modules"

I downloaded the SDK from your website here: https://docs.agora.io/en/Real-time-Messaging/downloads?platform=Unity

There is a Modules file inside AgoraRtmKit.framework and I can see in the terminal it's resolving to Versions/Current/Modules and Current is resolving to A but there is no Modules file in A.

Where can I find the Modules file?

zhangtao1104 commented 2 years ago

You can delete the file named Modules in agoraRTMCWrapper.bundle/Contents/Resources/AgoraRtmKit.framework/Modules and copy the library into your project and try again.