App crashes while loading with error in main.m

后端 未结 9 1807
日久生厌
日久生厌 2021-01-11 14:33

I\'m trying to recover an app that I accidentally deleted and managed to do it through the organizer, however, now when I try to run it on the simulator or iphone, it crashe

相关标签:
9条回答
  • 2021-01-11 15:28

    Usually when I get similar errors is because there is a broken link on the Interface Builder. Maybe you've changed the name of an IBOutlet and forgot to connect it again.

    0 讨论(0)
  • 2021-01-11 15:29

    It happened to me and all I did was changed the name of my image view and than changed it back later. But, I forgot to disconnect the other name after I deleted it. However, once I disconnected it from interface builder it worked.

    0 讨论(0)
  • 2021-01-11 15:30

    If you are using Storyboards, make sure you haven't hooked up duplicate referencing outlets or reference outlets that aren't there anymore in your code. In other words, if you dragged from a button on your view controller to your code and then the property or method has changed at all, you can get this error.

    enter image description here

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