Skip to content

Conversation

@dmaclach
Copy link

@dmaclach dmaclach commented Sep 3, 2025

Motivation

Fix up some compilation problems building with Xcode 16.4

@meta-cla meta-cla bot added the CLA Signed label Sep 3, 2025
amilich added a commit to amilich/idb that referenced this pull request Dec 14, 2025
Two key fixes for idb_companion on macOS 12.1+:

1. FBSimulatorVideoStream.m: Don't require hardware-accelerated encoding for JPEG
   - The original code unconditionally required hardware acceleration on macOS 12.1+
   - JPEG encoding may not have hardware encoder support on all systems
   - This caused VTCompressionSessionCreate to fail with -12902 (kVTParameterErr)
   - Now only H.264 requires hardware acceleration; JPEG prefers but doesn't require it

2. FBXcodeConfiguration.m: Fall back to xcode-select -p for developer directory
   - The symlink at /var/db/xcode_select_link no longer exists on modern macOS
   - Now tries the symlink first, then falls back to running xcode-select -p

3. FBSimulatorControl.xcodeproj: Mark required headers as Public
   - FBSimulatorApplicationCommands.h and FBSimulatorFileCommands.h need to be public
   - Required for idb_companion to build against the framework

4. Applied fixes from upstream PRs facebook#889 and facebook#895 for compilation issues

These fixes enable MJPEG video streaming at ~30 FPS without requiring the
simulator window to be visible on screen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant