the most common answer for this question on SO is 3 years old and the commonly agreed solution (delete DerivedData) doesn't work for me so I have to re ask this question.
I am trying to drag to create an outlet for my tableview.
as mentioned, deleting DerivedData does nothing for me (but I can see it reindexing). The second most common answer is
Removing(removing reference, not deleting) and then adding the appropriate file(the file of class you want to add the outlet to) is actually enough.
Edit 1 I found that after unchecking (in XCode 6.3.1) I had to wait a few seconds for the Indexing to appear and complete in the project name box. Same for the way backwards. This increased chances to fix the issue in almost all (but not all) cases.
Edit 2 Removing reference means that You do not delete the file completely but just remove it from the project (it still exist in the folder of your project, you add it later).
I dont know if this still applies to Xcode 7.3 since I work on storyboard and don't have any .h or .m files to delete or remove references to. If this advice is still valid in xcode 7.3, could you please advise where to click?
Other things I have tried that did not work
defaults delete com.apple.dt.Xcode
defaults write com.apple.dt.XCode IDEIndexDisable 0
Help a brother out?
Right click the view name in the Document Outline. Then click the little x by the referencing outlet. Select the view on the storyboard and then click the Connections Inspector. Then you can click the little x to remove an outlet reference.
Hi future xcode n00bs (i hate when the loop isnt closed by the asker!), please refer to @Paulw11's comment. that fixed it for me
You can just create the IBOutlet manually and then in IB drag from "new referencing outlet" to your view controller object in the left hand panel (you will need to expand this panel first, from your screenshot it is currently hidden) and make the connection. The assistant view is often a bit flakey
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With