Error in Xcode 6 - view controller does not have an outlet named (subview)

前端 未结 15 2077
刺人心
刺人心 2020-12-03 14:15

I just got this error in one of my apps, and after checking some other apps the same error is happening. None of my IBOutlets and IBActions are con

相关标签:
15条回答
  • 2020-12-03 14:54

    I've had this same problem since using XCode 6.1, answers above didn't work for me. (removing/re-adding my class files, changing the class to something else and then changing it back. The only thing I didn't try was creating a new project from scratch).

    I noticed by accident that my 'Application' placeholder within the MainMenu.xib had somehow got its class set to NSObject. Changing that to NSApplication seemed to clear the 'does not have an outlet named' problem from all of my other objects.

    0 讨论(0)
  • 2020-12-03 14:57

    I had the exact same problem and what was breaking my storyboards was the fact that my project was inside the folder /Dropbox (MyName)/projects/

    Apparently something about the name of the dropbox folder with spaces and ( ) was BREAKING my storyboard completely, try what I did and move your project completely to another folder and see if that helps :)

    0 讨论(0)
  • 2020-12-03 15:02

    Why dont you update your xcode 6.0.1 to xcode 6.1, Apple have fixed many bugs.

    Download Xcode 6

    0 讨论(0)
提交回复
热议问题