Adobe-Runtime-Support icon indicating copy to clipboard operation
Adobe-Runtime-Support copied to clipboard

iOS Mac crashes on Mac Silicon, Camera / Mic permission not working

Open apofis1969 opened this issue 1 year ago • 4 comments

Problem Description

Describe your problem in detail. Include the following information:

  • AIR SDK 51.1.1.4
  • iOS App on MacBook Air, Sonoma 14.6.1
  • Bug Report attached

@marchbold developed the gorgeous feature to recognize, if an iOS Apüp is running on Mac Application.service.device.isiOSAppOnMac But unfortunately there is a bug with the microphone or camera permission. The app crashes and does not connect to the streaming server. Building a normal Mac App all is working. Permissions in the privacy settings appear as granted.

I tested the permission settings with the Permission Manager of the AIR SDK as well as with the permission settings of the iOS App. I always get the same result. The bug seems to be with the camera settings, I think.

I already opened a ticket a long time ago, but no solution until now. (#2960) Maybe this time the problem will be discovered.

iosApp-Crash-on-Mac.txt

apofis1969 avatar Sep 22 '24 08:09 apofis1969

Hi

Trying to check on this to reproduce it ... I'm not actually sure whether this is a permissions/entitlements issue, as Apple are usually quite good about notifying you of this kind of error in the crash report. But just to check, do you have the permission strings for camera (and microphone?) in your InfoAdditions, and the entitlements for camera/microphone listed in your Entitlements section, within the iPhone block of the app descriptor?

The actual crash appears to be a null pointer dereference, but the call stack seems to show a recursive set of calls into [AVCaptureSession startRunning] .. and a large number of threads spawned for CameraFramesQueue..

Running an IPA directly on a Mac isn't working so we'll have to go via TestFlight I think, like you are .. which may take a bit of setting up here.

Separately - I just read through that other report, looks like we dropped that one, apologies - it also mentioned the fact that two cameras were reported? I'm actually seeing this same issue when I run it as a normal desktop macOS app, so we can check on that issue..

thanks

ajwfrost avatar Sep 25 '24 10:09 ajwfrost

hi @ajwfrost, attached I send you the entitlements. All permissions are declarated. iosApp-Crash-on-Mac-entitlements.txt

apofis1969 avatar Sep 26 '24 07:09 apofis1969

Thanks @apofis1969 .. are you able to try updating your entitlements section:

        <Entitlements><![CDATA[ ...
     ....
<key>com.apple.security.device.camera</key><true/>
<key>com.apple.security.device.microphone</key><true/>
]]></Entitlements>

I'm not convinced it's this - the call stack makes me think AIR isn't handling an error condition properly - but a macOS app would need these...

thanks

ajwfrost avatar Sep 27 '24 05:09 ajwfrost

Thanks @ajwfrost for your reply. But unfortunately this does not resolve the problem.

apofis1969 avatar Sep 27 '24 06:09 apofis1969

Hi, I wish you a happy new year! Will there be a fix for this problem? Basically this feature really should work.

apofis1969 avatar Dec 26 '24 10:12 apofis1969