zhuowei / VisionOSStereoScreenshots

Take 3D stereoscopic screenshots in the visionOS emulator.
376 stars 18 forks source link

Fix compile error on visionOS Beta 4 SDK #6

Open Naituw opened 1 year ago

Naituw commented 1 year ago

The latest visionOS Beta have some API change, cause this project to build (link) fail with errors:

ld: Undefined symbols:
  _cp_layer_configuration_get_layout_private, referenced from:
      __interpose_cp_layer_configuration_get_layout_private in visionos_stereo_screenshots-60b7c2.o
  _cp_layer_properties_get_view_count, referenced from:
      __interpose_cp_layer_properties_get_view_count in visionos_stereo_screenshots-60b7c2.o

This commit modified the source to use new apis