LoginSignup
3

More than 5 years have passed since last update.

macアプリ XCode9.4.1より特定のフォルダにアクセスできない問題の回避方法

Last updated at Posted at 2018-06-30

XCode9.4.1よあるフォルダにアクセスできなくなり困りました。

この解決にとても工数を使い苦しみましたので、情報共有します。

エラー内容:
Process(コマンドラインツール)であるライブラリフォルダのキャシュフォルダにファイルを作成しようとした際にエラーで実行停止。
[General] An uncaught exception was raised
ConvertDae[3468:444538] [General] launch path not accessible

解決方法:
プロジェクト内のConvertDae.entitlementsファイルの内容に以下を追記
<dict>
<key>com.apple.security.app-sandbox
<false/>
</dict>

単にサンドボックスのセキュリティ機能を全て解除していますので気になる方は以下を参考に厳密に対応可能のようです。
「App Sandboxの有効化」
https://developer.apple.com/library/archive/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/EnablingAppSandbox.html

【大変参考になりました】
@codelynx
macOS で ネットからURLでダウンロードするコードが動かなくなり焦って調べてみた
https://qiita.com/codelynx/items/35eba001de1ecee6826e

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3