Note that there are some explanatory texts on larger screens.

plurals
  1. POTerminating app due to uncaught exception 'NSUnknownKeyException' - error
    primarykey
    data
    text
    <p>I am following the Big Nerd Ranch iOS Programming Guide(3rd Edition), and have followed everything it says for creating this project. I am getting an error I do not know how to fix though, as I'm new to iOS. I was initially having a problem with my program giving me this error when I used Single-View Based Application from the template in Xcode:</p> <blockquote> <p>2012-05-25 16:02:12.926 Whereami[1083:707] Application windows are expected to have a root view controller at the end of application launch</p> </blockquote> <p>After scanning some forums I found out I need to set my MainInterface in Xcode:</p> <p>Before - <a href="https://i.imgur.com/YCnRM.png" rel="nofollow noreferrer">https://i.imgur.com/YCnRM.png</a></p> <p>After - <a href="https://i.imgur.com/5QnJ3.png" rel="nofollow noreferrer">https://i.imgur.com/5QnJ3.png</a></p> <p>After fixing the error above by adding the xib filename to the MainInterface text box in the settings I am getting this error:</p> <pre><code> 2012-05-25 16:04:09.068 Whereami[1102:707] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[&lt;UIApplication 0x11f620&gt; setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key activityIndicator. *** First throw call stack: (0x3507b88f 0x364a2259 0x3507b5c5 0x30eb6323 0x30eb5e23 0x30e8ff09 0x34fda7d3 0x34fdb461 0x323111af 0x3231294d 0x32248509 0x320d1893 0x320cb8d7 0x32099c6b 0x3209970f 0x320990e3 0x362ce22b 0x3504f523 0x3504f4c5 0x3504e313 0x34fd14a5 0x34fd136d 0x320caa13 0x320c7e7d 0x7ebd7 0x7eb7c) terminate called throwing an exception </code></pre> <p>Here are my source files:</p> <p>AppDelegate.m - <a href="https://i.imgur.com/7FdCZ.png" rel="nofollow noreferrer">https://i.imgur.com/7FdCZ.png</a></p> <p><a href="https://i.imgur.com/B65vf.png" rel="nofollow noreferrer">WhereamiViewController.h</a> <a href="https://i.imgur.com/nCKbl.png" rel="nofollow noreferrer">WhereamiViewController.m</a></p> <p>View - <a href="https://i.imgur.com/IZeoa.png" rel="nofollow noreferrer">https://i.imgur.com/IZeoa.png</a></p> <p>Run- <a href="https://i.imgur.com/dyYKd.png" rel="nofollow noreferrer">https://i.imgur.com/dyYKd.png</a></p> <p>I am stumped, and need to figure this out so I can move on and eventually finish this book. I need to be able to complete my first app for work by next week.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload