No Apple plug-in library path found

Hey!

I'm facing a problem I have 0 idea how to solve it. I'm building a project with Unity 2022.3.21 for visionOS and after a lot of exhausting problems I'm having the last one, I am kinda new to Xcode.

I get the error "No Apple plug-in library path found", at the root of the project there Xcode should find the ApplePluginLibraries folder, and it's actually there with two folders inside Apple.Core and Apple.GameKit. Xcode is saying the path was not found and I can see it exists through finder.

In Search Paths > Framework Search Paths I have: $(PROJECT_DIR)/ApplePluginLibraries/Apple.GameKit $(PROJECT_DIR)/ApplePluginLibraries/Apple.Core

Also in Other Linker Flags I have: -L$(PROJECT_DIR)/ApplePluginLibraries/Apple.GameKit -L$(PROJECT_DIR)/ApplePluginLibraries/Apple.Core

I was having a few errors and the last one is: Command PhaseScriptExecution failed with a nonzero exit code, and the description says about the path not found.

My info: MacOS: Apple M1 Pro Sonoma 14.5 Xcode: 15.4 Unity: 2022.3.21f1

Any idea?

Thanks!!

Facing the same issue, would appreciate any help!

Getting:

No Apple plug-in library path found at /Users/username/My project/Builds/ApplePluginLibraries Command PhaseScriptExecution failed with a nonzero exit code

Building on Apple Silicon Mac for VisionOS

Facing the same issue, would appreciate any help!

I have found a solution. I need enable Run script: for install builds only

same issue can build but can't archive

I'm facing the same issue for macOS. Setting to "For install builds only" works for building, but not for archiving.

The issue in my case was due to the project folder containing spaces. To resolve this, I went under Build Phases > Embed Apple Plug-in Libraries and wrapped $APPLE_PLUGIN_LIBRARY_ROOT on line 8 in double-quotes, like "$APPLE_PLUGIN_LIBRARY_ROOT", so that the shell treats it as a single argument. I am now able to build and archive.

I had this problem. I believe that the problem was that the parent folder of my build had spaces in its name. That's theoretically why wrapping with double quotes should work, but I chose to just remove spaces from the folder's name instead.

No Apple plug-in library path found
 
 
Q