wulkano / Aperture

Record the screen on macOS
MIT License
1.23k stars 111 forks source link

Aperture Example Not Working iOS/Mac | macOS 11.2.3 & Xcode 12.4 #75

Closed SENTINELITE closed 2 years ago

SENTINELITE commented 3 years ago

I've been trying to get the example to run, but it's proving difficult.

It keeps getting stuck at line 20: print("Failed to initialize")

After digging around some, I can confirm that I have read/write permissions, the destination URL is valid, I can pick up the iPhone's ID, it just keeps failing.

I've attached the output logs below, but I don't think these are really problems.

I also tried using the screen recording, instead of a iOS device, but that didn't work either, failing to initialize as well. The app has access to the system’s camera/microphone.

I was able to capture the screen with Aperture-Node, but I’m looking to using Aperture as part of my Swift native app.

Lastly, why would the example script be about recording an iOS device, when this was made to record the Mac's screen? There's hardly any info regarding Mac/AVFoundation, so I feel like there should at least be an example for macOS as well. I know it's trivial, but it could go a long way for others.

XcodePlist



2021-03-30 15:10:35.333166-0700 Aperture_Test[6323:393386] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x6000028f2500> 30010C1C-93BF-11D8-8B5B-000A95AF9C6A

2021-03-30 15:10:35.337822-0700 Aperture_Test[6323:393386] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x6000028f8600> F8BB1C28-BAE8-11D6-9C31-00039315CD46

2021-03-30 15:10:35.463648-0700 Aperture_Test[6323:393386] [] CMIOHardware.cpp:379:CMIOObjectGetPropertyData Error: 2003332927, failed

2021-03-30 15:10:35.463685-0700 Aperture_Test[6323:393386] [] CMIOHardware.cpp:379:CMIOObjectGetPropertyData Error: 2003332927, failed

2021-03-30 15:10:35.463702-0700 Aperture_Test[6323:393386] [] CMIOHardware.cpp:379:CMIOObjectGetPropertyData Error: 2003332927, failed
sindresorhus commented 2 years ago

There was a bug where it didn't correctly handle if you didn't set a video codec. This is now fixed in the latest version.