#App quits on Start Recording (iOS)

1 messages · Page 1 of 1 (latest)

digital plume
#

Hello, even though the recording works on Android, it doesn't work on iOS. I have a button that when the user clicks the recording starts. On iPhone 14 Pro Max the app just quits when I press this button. I am using the script attached.

digital plume
#

App quits on Start Recording (iOS)

lament pier
#

Could you please share the crash log? Also do you reproduce the issue in our ScreenRecordingDemo scene?

digital plume
#

This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data.

#

Hm strange because I remember disabling the mic for the iphone build, but now I see it is enabled after the build, I will try a new one without the mic and I will let you know

digital plume
#

I also get this error when building on iPhone:
/Users/petrospapadopoulos/Desktop/Pi CARD BUILDS/Build 2.1.3.test2/VoxelBusters/ScreenRecordingKit/VideoRecorder/VideoRecorder/VideoRecorder.m:10:9 'NSError+ScreenRecorderKit.h' file not found with <angled> include; use "quotes" instead

#

Again I got the same error even though I disabled the "Uses Microphone" in the Screen Recorder Settings:
Log:
Enable Microphone...
This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSMicrophoneUsageDescription key with a string value explaining to the user how the app uses this data.

lament pier
#

Most likely post processing issue. Do you see any errors in the unity console after making a xcode buidl?

digital plume
#

Failed to install CocoaPods for the current user.

It will not be possible to install Cocoapods in the generated Xcode project which will result in link errors when building your application.

For more information see:
https://guides.cocoapods.org/using/getting-started.html

'gem install cocoapods --user-install' failed with code (1):

#

It is trying to install this CocoaPods every time I make a build, I don't know what this is

lament pier
#

We add the entry in info.plist automatically through pur post processing scripts.

digital plume
#

ok I added a description on Microphone Usage Description

#

in Unity Settings

#

I think this will fix it

lament pier
#

We don't use cocoapods. You can actually set of installation in top menu bar -> Assets -> External Dependency Manager -> ios settings

lament pier
digital plume
#

I have the mic disabled though, why is it trying to access it?

digital plume
#

Ok it works now that I added the description, but it uses the mic, even though I don't want it to use the mic

#

I only want the system sounds (I know that on Android we can't do that, but on iPhone it is possible right?)

lament pier
#

Yes, mic should be off if set to false. I will cross check once

digital plume
#

ok thank you. I tested it multiple times and it is never off

digital plume
#

@lament pier do you have any news?