visionOS Simulator: CloudKitWrapper not found

Hello, I'm working on a Unity game which uses Apple Arcade Cloudkit Unity plugin. Cloud save works on all platforms except visionOS. I tried to debug using visionOS 2.4 Simulator. When the game starts XCode display the following error:

DllNotFoundException: Unable to load DLL 'CloudKitWrapper'. Tried the load the following dynamic libraries: Unable to load dynamic library '/CloudKitWrapper' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = dlopen(/CloudKitWrapper, 0x0005): tried: '/Users/seb/Library/Developer/Xcode/DerivedData/Unity-VisionOS-akwybgjotadlwrghmmfkhbhpuduf/Build/Products/Debug-xrsimulator/CloudKitWrapper' (no such file), '/Library/Developer/CoreSimulator/Volumes/xrOS_22O237/Library/Developer/CoreSimulator/Profiles/Runtimes/xrOS 2.4.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection/CloudKitWrapper' (no such file), '/Library/Developer/CoreSimulator/Volumes/xrOS_22O237/Library/Developer/CoreSimulator/Profiles/Runtimes/xrOS 2.4.simruntime/Contents/Resources/RuntimeRoot/CloudKitWrapper' (no such file), '/CloudKitWrapper' (no such file) at Apple.CloudKit.CKContainer.CKContainer_Default () [0x00000] in <00000000000000000000000000000000>:0 at Apple.CloudKit.CKContainer.Default () [0x00000] in <00000000000000000000000000000000>:0

I opened up the "Debug-xrsimulator" and indeed there is no CloudKitWrapper. However, if I "show content" on the app and navigate to the "Frameworks" folder, all Apple Arcade plugins are here, including CloudKit. I guess the plugin is in the right location, but the code tries to load it from the wrong path.

I am not quite familiar with the development for Apple Arcade, but is CloudKitWrapper your code? Is it a part of the CloudKit plugin you mentioned? Also, is the CloudKit plugin yours, or is it provided by Apple Arcade? If it is yours, do it support visionOS simulator?

I am asking because the message indicates that the CloudKitWrapper dynamic library doesn't exist, which can happen if it is a part of the CloudKit plugin and the plugin doesn't support visionOS simulator.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

Hello, The plugin is from Apple Arcade Unity plugins shared by Apple to Apple Arcade developers. It does work with macOS,iOS, iPadOS and tvOS. We are experiencing this issue on the visionOS simulator and device only. Is there a way to have a version compatible with those platforms?

Best,

visionOS Simulator: CloudKitWrapper not found
 
 
Q