0

When I ctrl-drag an object from the storyboard to code in the assistant editor I get this error:

I've googled the hell out of this problem and tried every suggestion that I could find. I restarted XCode, restarted my computer, updated XCode, deleted and re-added files, etc. and nothing is working. I saw suggestions to manually write the code and then drag from the circle in the gutter to the object I want to connect to in the storyboard. This would be a fine solution, but for some reason the outlet isn't showing up.

Normally the outlet would be to the left of the line number in the gutter

I am not sure what to do at this point except cry. If anyone has any suggestions or help to offer that would be greatly appreciated.

FelixSFD
  • 6,052
  • 10
  • 43
  • 117
Megan Wood
  • 3
  • 1
  • 5
  • Are you sure you are dragging the IBOutlets to proper viewController owner class ???? Check if ViewController is set properly or not in Xcode, check if Assistant editor is in automatic or manual mode – Sandeep Bhandari Dec 13 '16 at 08:29
  • Yes, I have triple checked that I am connecting to the proper class. If it is not the proper class, it doesn't even let me drag into the code. Assistant editor returns no results in automatic mode - does that mean anything? I have to find the class in manual mode. – Megan Wood Dec 13 '16 at 08:33
  • Delete the derived data folder of Xcode, restart the Xcode, it happens sometimes with new Xcode – Sandeep Bhandari Dec 13 '16 at 08:39
  • send us your project. – GeneCode Dec 13 '16 at 08:41
  • deleting the derived data folder didn't fix the problem. also, this is a problem on every single xcode project on my computer, even very old ones. how do i send a file? – Megan Wood Dec 13 '16 at 08:44
  • Sounds like a problem with XCode installation. – GeneCode Dec 13 '16 at 08:54
  • care to elaborate? – Megan Wood Dec 13 '16 at 08:55
  • ah i fixed the problem! for anyone else with this issue, needed to turn on indexing. http://stackoverflow.com/questions/13959709/stopping-xcode-from-indexing – Megan Wood Dec 13 '16 at 09:06
  • [Workaround can be found here:](http://stackoverflow.com/a/40933262/1457385) – shallowThought Dec 13 '16 at 12:49

0 Answers0