How to Apple Unity Plugins

When running my game in the Unity Editor on Windows platform I get an error:

DllNotFoundException: GameKitWrapper assembly:<unknown assembly> type:<unknown type> member:(null)
Apple.GameKit.DefaultNSErrorHandler.Init () (at ./Library/PackageCache/com.apple.unityplugin.gamekit@0abcad546f73/Source/DefaultHandlers.cs:35)

This is because GameKitWrapper dynamically linked library is not available under Windows platform.

Besides, "Apple Build Settings" are declared under UNITY_EDITOR_OSX and also not available under Windows platform.

Does anyone managed to solve this?

Hey, I had the same issue.

Modifying the relevant assembly definition files before building seemed to work. For me those files were:

plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Runtime/Apple.Core.asmdef
plug-ins/Apple.GameKit/Apple.GameKit_Unity/Assets/Apple.GameKit/Source/Apple.GameKit.asmdef

Modify them so that they're constrained to not build if Unity Editor on Windows is defined.

"defineConstraints": [
     "!UNITY_EDITOR_WIN"
]

Then build the 'Apple Unity Plug-Ins' package as normal after.

How to Apple Unity Plugins
 
 
Q