Duplicate Symbol Error

后端 未结 11 1893
情书的邮戳
情书的邮戳 2021-01-18 03:44

I\'m not sure what I did but I added an IBOutlet to display an additional attribute in a TableView cell. When building the application I get the following error message...

11条回答
  •  暖寄归人
    2021-01-18 04:01

    This can happen when a source is compiled in your target twice, or if it is built in two separate targets. You can verify this in your target's build phases, or remove it from the target and then re-add it.

    Update

    Kasas pointed out a new Xcode feature (in an Edit which other reviewers rejected), where Xcode can detect some such cases for you -- Simply "Validate" the target or project settings. If found, Xcode will offer to remove the redundant compilation for you. Thanks Kasas.

提交回复
热议问题