XCode utility template crashes

2019-09-16 17:37发布

问题:

following the next exact steps i get a SIGKILL from xcode :

  1. creating a new Utility Based iOS template for the iphone
  2. building and launching it with the emulator
  3. pressing the home button
  4. double pressing home and closing my application
  5. relaunching it

i can't seem to understand why it is crashing, does anyone manage to reproduce it and has a clue about what is happening ?

thanks !!

EDIT - apparently this is normal behaviour, found a related post here hope it helps.

回答1:

I had the same problem for a while. I figured out that this happens when you delete an IBOutlet in your h file, but you don't delete the connection in the .xib file.

Go to your .xib (or storyboard), click on File's Owner, and in the "Connections Inspector" (far right, looks like a circle with a right arrow) tab of the "Utilities Inspector" (far right sidebar in xcode 4.x) make sure you don't have any unused IBOutlets sitting there.

It worked for me...