在OS X中启用沙箱时,Audiokit崩溃 [英] Audiokit crashes when enabling sandbox in OS X
问题描述
使用Audiokit的我的应用程序在没有沙箱的情况下可以完美运行.但是,一旦我在Xcode中启用沙箱,尝试初始化麦克风访问权限时应用就会崩溃. (该应用程序位于iOS的App Store中,但现在我正尝试以OS X应用程序的形式提交到Mac Store,但我需要启用沙箱)
My app using Audiokit is running perfectly without sandbox. But as soon as I enable sandbox in Xcode the app crashes when trying to initialize the mic access. (The app is on the App Store for iOS, but now I am trying to submit to the Mac Store as a OS X app but I need to enable sandbox)
有人能够将其中装有Audiokit的Mac应用程序提交到Mac App Store吗?
Has anyone been able to submit a Mac app to the Mac App Store with Audiokit in it?
错误:>可用> AVAudioEngine.mm:275:AttachNode:必需条件 是错误的:
node != nil
ERROR: >avae> AVAudioEngine.mm:275: AttachNode: required condition is false:
node != nil
推荐答案
此权利文件确实对我有用.但这并不涵盖所有情况. 请查看Apple文档以获取更多详细信息 https://developer.apple.com /library/archive/technotes/tn2312/_index.html
This entitlements file did work for me. But it doesn't cover all the cases. Please check Apple documentation for more details https://developer.apple.com/library/archive/technotes/tn2312/_index.html
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.device.audio-input</key>
<true/>
<key>com.apple.security.device.audio-video-bridging</key>
<true/>
<key>com.apple.security.files.bookmarks.document-scope</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.temporary-exception.audio-unit-host</key>
<true/>
<key>com.apple.security.temporary-exception.mach-lookup.global-name</key>
<array>
<string>com.apple.midiserver</string>
<string>com.apple.midiserver.io</string>
</array>
</dict>
这篇关于在OS X中启用沙箱时,Audiokit崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!