Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

Included in the copied code where some @IBOutlets and @IBActions. My intention was to later on hook them up to the storyboard in the new project. However, xcode somehow managed to copy the references to the old project's storyboard. How can I get rid of those references?

enter image description here

Update: After having added a connection from my storyboard to the buyButton, xcode indicates that the buyButton is connected to two different storyboards.

enter image description here

like image 963
ragnarius Avatar asked Jul 18 '16 10:07

ragnarius


3 Answers

Finally came up with another solution We can also remove connections from Storybord by the following steps:-

enter image description here

Find Your connection and remove it:-

enter image description here

like image 190
tryKuldeepTanwar Avatar answered Sep 20 '22 16:09

tryKuldeepTanwar


For me solved after restarting the Xcode . Now its working fine.

like image 4
vijay Avatar answered Oct 10 '22 04:10

vijay


My current conclusion is that xcode (7.3.1) contains a bug (or shortcoming).

If I terminate xcode and then open my new project then everything looks good.

If I then open the old project, and also open the old storyboard within that project, then the false bullet links becomes visible in my new project. enter image description here

My guess is that xcode scans through all storyboards, that are currently opened in any project, to find a link between an outlet name such as "buyButton" and a storyboard.

like image 8
ragnarius Avatar answered Oct 10 '22 06:10

ragnarius