Skip to content

Fix up compiler errors#889

Closed
dmaclach wants to merge 2 commits into
facebook:mainfrom
dmaclach:fixcompile
Closed

Fix up compiler errors#889
dmaclach wants to merge 2 commits into
facebook:mainfrom
dmaclach:fixcompile

Conversation

@dmaclach
Copy link
Copy Markdown
Contributor

@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.
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented May 15, 2026

@xgerrit has imported this pull request. If you are a Meta employee, you can view this in D105367662.

meta-codesync Bot pushed a commit that referenced this pull request May 15, 2026
Summary:
## Motivation

Fix up some compilation problems building with Xcode 16.4

Pull Request resolved: #889

Reviewed By: bryanyantx

Differential Revision: D105367662

Pulled By: xgerrit

fbshipit-source-id: 376bf91d5c867188100a268ce7780f8e6d4c1ef9
@meta-codesync meta-codesync Bot closed this in 8e1cec7 May 15, 2026
@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented May 15, 2026

@xgerrit merged this pull request in 8e1cec7.

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.

2 participants