0
0

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.

「Linker command failed with exit code 1」の解消の仕方

Last updated at Posted at 2017-06-01

XcodeCocos2d-x開発を行っている際、
"Linker command failed with exit code1"
というエラーに悩まされました。ググってもなかなか解決方法が見つからなかったのですが、解消方法が判明したのでメモ代わりに書いておきます。

コンソールから該当プロジェクトフォルダに行って、下記のコマンドを打つ。

find . -type f -name '*.png' -exec xattr -c {} \;

その後、クリーンビルド。
使っているリソースが、pngでない場合、該当リソースの拡張子で実行すると解消します。

解消はするのですが、最近はResourcesにpngを追加するたびに発生します。
そのたびにクリーンビルドするのは辛い。引き続き解消法を調べます・・・

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?