[go: up one dir, main page]

Editor Ok, but running batch get: Cannot locate a Release or Debug Apple.GameKit native library for macOS

After running build.py -p Core GameKit and adding the tar balls to the Unity project in Assets/ExternalPackages no packages seem to be found when running the build using our continuous integration system.

This was not the case when the project was opened in the Editor.

It looks like in Apple.Core, the ApplePluginEnvironment hasn't run the OnEditorUpdate function and so the _appleUnityPackages Dictionary is empty.

A change to ApplePlugInEnvironment.cs seemed to fix the issue:

public static AppleNativeLibrary GetLibrary(string packageDisplayName, string appleBuildConfig, string applePlatform) { // ?FIX?: If we're not in the editor, we might not have updated the package list. if (_appleUnityPackages.Count == 0 && _updateState == UpdateState.Initializing) { OnEditorUpdate(); // UpdateState.Initializing OnEditorUpdate(); // UpdateState.Updating }

I'm not sure if this is something we're doing incorrectly, the documentation for the plug-in mostly covered building the package.

Editor Ok, but running batch get: Cannot locate a Release or Debug Apple.GameKit native library for macOS
 
 
Q