Attention! Translated article might be found on my English blog.

2017年10月10日火曜日

自作のV3 AudioUnitがサードパーティ製ホストアプリで動かなかった

NOTEEnglish article is available.

10.13で動作確認中、自作AUがauvalでエラーを吐くという問題が起こりました。
エラーは以下のような感じです。
2017-10-10 11:45:27.172 auvaltool[508:5335] Error: Session 091F49F0-C167-4CFB-820E-4DBCC049FD3B was unable to communicate with the remote service: Error Domain=NSCocoaErrorDomain Code=4099 "The connection from pid 512 was interrupted, but the message was sent over an additional proxy and therefore this proxy has become invalid." UserInfo={NSDebugDescription=The connection from pid 512 was interrupted, but the message was sent over an additional proxy and therefore this proxy become invalid.}
調査の結果、AU側で自作frameworkへリンクしていなかったのが原因のようでした。
XcodeでAUターゲットを選択し、[Build Phases]-[Link Binary With Libraries]に
自作frameworkを追加することで解決しました。



うーん、なぜ今まで問題なかったのかはよく分かりません。><