3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

resource fork, Finder information, or similar detritus not allowedと表示されてビルドエラーになったときの対処法

Posted at
/Users/error_user/Library/Developer/Xcode/DerivedData/neet-abjggixtwqvtyealubfxjyuqqrbb/Build/Products/Debug-iphoneos/test.app: resource fork, Finder information, or similar detritus not allowed
Command /usr/bin/codesign failed with exit code 1

上記のようなエラーが出たときの対処法です。
「Command /usr/bin/codesign failed with exit code 1」のほうで検索をかけると、キーチェーンで古い証明書を消せ、的な回答がたくさん出てきますが、それでも対処できないときに試してみてください。
参考: Technical Q&A QA1940: Code signing fails with error 'resource fork, Finder information, or similar detritus not allowed'

手順

$ cd /Users/a13945/Library/Developer/Xcode/DerivedData/neet-abjggixtwqvtyealubfxjyuqqrbb/Build/Products/Debug-iphoneos/
$ xattr -cr enh_dev.app/

これを試したあと、xattr -lr enh_dev.app/を叩いて何も表示されなければ、その後ビルドできるようになります。

3
1
0

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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?