Search Unity

Could not load native macOS plugin linked to libmono.0.dylib in 2017.1

Discussion in 'macOS' started by adamt, Jul 14, 2017.

  1. adamt

    adamt

    Joined:
    Apr 1, 2014
    Posts:
    116
    Has anyone else had issues with native macOS plugins linked against libmono.0.dylib in 2017.1? I'm getting the following error when in play mode:

    Couldn't open /Users/adam/dev/game/Client/Assets/Plugins/WebView.bundle/Contents/MacOS/WebView, error: dlopen(/Users/adam/dev/game/Client/Assets/Plugins/WebView.bundle/Contents/MacOS/WebView, 2): Library not loaded: @executable_path/../Frameworks/MonoEmbedRuntime/osx/libmono.0.dylib
    Referenced from: /Users/adam/dev/game/Client/Assets/Plugins/WebView.bundle/Contents/MacOS/WebView
    Reason: image not found


    I suspect the reason is because Unity 2017.1 has a different folder structure than Unity 5.5 (what we're upgrading from) in its application bundle to support the experimental Mono upgrade, so the folder it's trying to reference doesn't exist.

    I've filed a bug (931115) about this but if anyone has run into anything similar and knows of a way around it, I'd appreciate it.