@IBOutlet and @IBAction refers to wrong project, how to get rid of those references?

前端 未结 7 2128
误落风尘
误落风尘 2021-02-20 02:32

I have copied and pasted some source code from one old xcode-project to another new project.

Included in the copied code where some @IB

7条回答
  •  清酒与你
    2021-02-20 03:13

    This is still an issue with Xcode 8.3.3 as of June 25th, 2017.

    The only solution I have been successful with is to change the name of the entity.

    What doesn't work for me:

    • Clean, clean project build folder

    • Restart Xcode

    • Upgrade Xcode to newest version (existed in 8.1 and 8.2 for me as well)
    • Close the other project that I had open
    • Delete and re-add the connection
    • Inspect the source code and remove the duplicate connection from the xml
    • Click any of the places to view references, delete them, and re-add.

提交回复
热议问题