Open rbaileyquintar opened 1 year ago
Ok, I copied the dylib into the simulator directory and injected from there: cp /Users/richardbailey/Documents/GitHub/VisionOSStereoScreenshots/libvisionos_stereo_screenshots.dylib /Users/richardbailey/Library/Developer/CoreSimulator/Devices/5D875511-639B-4C0C-AD06-CDBC007B5D47/data
xcrun simctl spawn booted launchctl debug user/$UID/com.apple.backboardd --environment DYLD_INSERT_LIBRARIES=/Users/richardbailey/Library/Developer/CoreSimulator/Devices/5D875511-639B-4C0C-AD06-CDBC007B5D47/data/libvisionos_stereo_screenshots.dylib
That cleared the console issues: AppleMobileFileIntegrity default 13:07:29.076396-0700 kernel AMFI: '/Users/richardbailey/Library/Developer/CoreSimulator/Devices/5D875511-639B-4C0C-AD06-CDBC007B5D47/data/libvisionos_stereo_screenshots.dylib' has no CMS blob? AppleMobileFileIntegrity default 13:07:29.076410-0700 kernel AMFI: '/Users/richardbailey/Library/Developer/CoreSimulator/Devices/5D875511-639B-4C0C-AD06-CDBC007B5D47/data/libvisionos_stereo_screenshots.dylib': Unrecoverable CT signature issue, bailing out. libvisionos_stereo_screenshots.dylib default 13:07:29.311712-0700 backboardd visionos_stereo_screenshots starting!
I'n not seeing the file written out.
Did you manage to solve it? @rbaileyquintar
Is there something special for permissions needed in order to inject the dylib?
richardbailey@RICHARDs-MacBook-Pro VisionOSStereoScreenshots % ./inject.sh
Service configured for next launch. richardbailey@RICHARDs-MacBook-Pro VisionOSStereoScreenshots % ./screenshot.sh
richardbailey@RICHARDs-MacBook-Pro VisionOSStereoScreenshots %
VisionOS Console: launchctl default 12:38:54.803397-0700 launchctl launchctl debug: launchctl debug user/501/com.apple.backboardd --environment DYLD_INSERT_LIBRARIES=/Users/richardbailey/Documents/GitHub/VisionOSStereoScreenshots/libvisionos_stereo_screenshots.dylib launchctl default 12:38:54.803397-0700 launchctl launchctl debug: launchctl debug user/501/com.apple.backboardd --environment DYLD_INSERT_LIBRARIES=/Users/richardbailey/Documents/GitHub/VisionOSStereoScreenshots/libvisionos_stereo_screenshots.dylib launchctl default 12:38:54.803397-0700 launchctl launchctl debug: launchctl debug user/501/com.apple.backboardd --environment DYLD_INSERT_LIBRARIES=/Users/richardbailey/Documents/GitHub/VisionOSStereoScreenshots/libvisionos_stereo_screenshots.dylib launchctl default 12:38:54.803397-0700 launchctl launchctl debug: launchctl debug user/501/com.apple.backboardd --environment DYLD_INSERT_LIBRARIES=/Users/richardbailey/Documents/GitHub/VisionOSStereoScreenshots/libvisionos_stereo_screenshots.dylib
macOS console: launchctl default 12:31:56.304867-0700 launchctl launchctl debug: launchctl debug user/501/com.apple.backboardd --environment DYLD_INSERT_LIBRARIES=/Users/richardbailey/Documents/GitHub/VisionOSStereoScreenshots/libvisionos_stereo_screenshots.dylib Sandbox error 12:31:56.655487-0700 kernel System Policy: backboardd(38962) deny(1) file-read-data /Users/richardbailey/Documents/GitHub/VisionOSStereoScreenshots/libvisionos_stereo_screenshots.dylib Sandbox error 12:31:56.655615-0700 kernel 1 duplicate report for System Policy: backboardd(38962) deny(1) file-read-data /Users/richardbailey/Documents/GitHub/VisionOSStereoScreenshots/libvisionos_stereo_screenshots.dylib