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.

Answered by ForumsContributor in

We encountered a second issue - caused by our project having spaces in the folder structure. We fixed this by adding quotes to the function creating the Native lib shell script, GenerateEmbedNativeLibraryShellScript in AppleBuild.cs:

#385 + "if [ -d "$APPLE_PLUGIN_LIBRARY_ROOT" ]; then\n"

Thank you for mentioning and we acknowledge the bugs. We're working on them.

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