Cannot find devices in RemoteImmersiveSpace

Hi,

I'm running the Spatial Rendering App sample on a Macbook Pro running 26.4 Beta and the Vision Pro running visionOS 26.3.1. Handoff and SharePlay are on, both devices are on the same Apple ID and network, and SharePlay screen sharing works fine between the two devices.

However, when calling openImmersiveSpace, the device picker fails to present and no devices are found.

Errors from console:

((processConfiguration != nil && configuration != nil) ||
(processConfiguration == nil && configuration == nil)) -
  .../ExtensionKit/Source/HostViewController/Internal/EXHostSessionDriver.m:80: `processConfiguration` and `configuration` must be both non-nil or both nil

Unable to obtain a task name port right for pid 638: (os/kern) failure (0x5)

Unable to present an ImmersiveSpace for Scene id 'Compositor Services'

Is this a known bug or I'm I missing something? Thanks!

Hi @hungng

Could you try running the Spatial Rendering App template and see if you can reproduce the issue there?

To do so:

  1. Create a new project in Xcode by choosing File > New > Project.
  2. Navigate to the macOS section of the template chooser.
  3. Select the Spatial Rendering App template.

Let me know if you run into the same issue with the template, thanks!

Hi  @Vision Pro Engineer, after testing that template a few times, I was able to see my app on the 'My Devices' tab. However, I seem to be stuck in the 'Waiting' state now. I've attached the logs. Thanks!

Warning: -[NSWindow makeKeyWindow] called on <NSWindow: 0xbb85b8c80> windowNumber=7505 which returned NO from -[NSWindow canBecomeKeyWindow].

((processConfiguration != nil && configuration != nil) || (processConfiguration == nil && configuration == nil)) - /AppleInternal/Library/BuildRoots/4~CKMVugC7xryZ7g5JjsaPBH1f25q2BM2pc57nT-M/Library/Caches/com.apple.xbs/TemporaryDirectory.kDsM7Z/Sources/ExtensionKit/ExtensionKit/Source/HostViewController/Internal/EXHostSessionDriver.m:80: `processConfiguration` and `configuration` must be both non-nil or both nil

Unable to obtain a task name port right for pid 638: (os/kern) failure (0x5)
Cannot find devices in RemoteImmersiveSpace
 
 
Q