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.

duplicate symbol _OBJC_IVAR_$_HOGEHOGECLASS.value〜というビルドエラーが出た場合

Posted at

ネット上で検索すると、よく

#import hegehegeclass.h

とするところを

#import hogehogeclass.m

としていた間違いが多いのだけれど、今回の場合は違った。

原因を調べたところ、hogehogeclass.mとhogehogeclass.hを他projectから持ってくるときの追加方法が悪かったらしく、

設定の「TARGET」-「Build Phases」-「Compile Sources」に同じクラス名が二つ入っていた

必要のない片方を消すことで、問題なくビルドができるようになった。

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?