tukuyo's blog

へっぽこまん

スポンサーリンク

Entitlements fileのエラーを修正する

エラー文

error: Entitlements file "projectname.entitlements" was modified during the build, which is not supported. You can disable this error by setting 'CODE_SIGN_ALLOW_ENTITLEMENTS_MODIFICATION' to 'YES', however this may cause the built product's code signature or provisioning profile to contain incorrect entitlements.

修正方法

Xcode の Project をクリック後、
ターゲット一覧からプロジェクトターゲットをクリックし、Build Settingsタブをクリックする。
選択したタブの下にある、+ ボタンをクリックし
CODE_SIGN_ALLOW_ENTITLEMENTS_MODIFICATION を追加し、YESに設定する。

別の修正方法

私自身は試していませんが、Clean Build Folder で治ることもあるらしいです。

スポンサーリンク