Question

I have an application which plays a midi sound. The application works fine without sandboxing, and plays the sound it is supposed to play, but I cannot here the sound when I enable sandboxing.

I need to upload the application to mac app store, but i cannot do it, because i cannot get sound.

I also cannot open the file dialog box, when I enable sandboxing. Is there any way I can at least enable the sound in the app?

Below is the screenshot of the sandboxing settings in Xcode 5

Was it helpful?

Solution

As Petesh said in above comments, I had to add some more entries in the entitlements file, the link which was given by him above, contained following. You add them to your entitlement file, and everything will start working like a charm.

This one allows your application to access the microphone.

com.apple.security.device.microphone

This allows talking to the MIDI Server which coordinates all the Midi functionality across applications.

com.apple.security.temporary-exception.mach-lookup.global-name

This allows talking to audio components which are not itself sandboxed.

com.apple.security.temporary-exception.audio-unit-host

They worked for me.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top