1 Reply
      Latest reply: Jan 19, 2017 2:21 AM by eskimo RSS
      jameel354 Level 1 Level 1 (0 points)

        Sorry if it is something simple, I am new to swift.

        I have done something to my code and now it will not run the simulator.

         

        how do I fix it ?

        Many Thanks

        Jameel

         

        
        objc[19860]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x10d5a0998) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x10d3c2880). One of the two will be used. Which one is undefined.
        2017-01-17 21:14:54.806 realapp[19860:196301] Firebase automatic screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable automatic screen reporting, set the flag FirebaseAutomaticScreenReportingEnabled to NO in the Info.plist
        CoreData: error:  Failed to load model named Realapp
        2017-01-17 21:14:54.889 realapp[19860] <Debug> [Firebase/Core][I-COR000001] Configuring the default app.
        2017-01-17 21:14:54.904 realapp[19860:] <FIRAnalytics/INFO> Firebase Analytics v.3600000 started
        2017-01-17 21:14:54.909 realapp[19860:] <FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http:/ 
        2017-01-17 21:14:54.926: <FIRInstanceID/WARNING> FIRInstanceID AppDelegate proxy enabled, will swizzle app delegate remote notification handlers. To disable add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO
        2017-01-17 21:14:54.926: <FIRInstanceID/WARNING> Failed to fetch APNS token Error Domain=com.firebase.iid Code=1001 "(null)"
        2017-01-17 21:14:54.930: <FIRMessaging/INFO> FIRMessaging library version 1.2.0
        2017-01-17 21:14:54.940 realapp[19860] <Debug> [Firebase/Core][I-COR000018] Already sending logs.
        2017-01-17 21:14:54.942 realapp[19860:] <FIRAnalytics/INFO> Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist
        2017-01-17 21:14:54.958: <FIRMessaging/WARNING> FIRMessaging AppDelegate proxy enabled, will swizzle app delegate remote notification receiver handlers. Add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO
        2017-01-17 21:14:55.057 realapp[19860:196301] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<realapp.ViewController 0x7f967ac086f0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key logIn.'
        *** First throw call stack:
        (
          0   CoreFoundation                      0x00000001061b3d4b __exceptionPreprocess + 171
          1   libobjc.A.dylib                     0x000000010782f21e objc_exception_throw + 48
          2   CoreFoundation                      0x00000001061b3c99 -[NSException raise] + 9
          3   Foundation                          0x000000010733d9df -[NSObject(NSKeyValueCoding) setValue:forKey:] + 291
          4   UIKit                               0x00000001089cd293 -[UIViewController setValue:forKey:] + 88
          5   UIKit                               0x0000000108c4179e -[UIRuntimeOutletConnection connect] + 109
          6   CoreFoundation                      0x00000001061589e0 -[NSArray makeObjectsPerformSelector:] + 256
          7   UIKit                               0x0000000108c40122 -[UINib instantiateWithOwner:options:] + 1867
          8   UIKit                               0x00000001089d39c5 -[UIViewController _loadViewFromNibNamed:bundle:] + 386
          9   UIKit                               0x00000001089d42e7 -[UIViewController loadView] + 177
          10  UIKit                               0x00000001089d461c -[UIViewController loadViewIfRequired] + 201
          11  UIKit                               0x00000001089d4e70 -[UIViewController view] + 27
          12  UIKit                               0x000000010889e4b5 -[UIWindow addRootViewControllerViewIfPossible] + 71
          13  UIKit                               0x000000010889ec06 -[UIWindow _setHidden:forced:] + 293
          14  UIKit                               0x00000001088b2519 -[UIWindow makeKeyAndVisible] + 42
          15  UIKit                               0x000000010882af8d -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4818
          16  UIKit                               0x00000001088310ed -[UIApplication _runWithMainScene:transitionContext:completion:] + 1731
          17  UIKit                               0x000000010882e26d -[UIApplication workspaceDidEndTransaction:] + 188
          18  FrontBoardServices                  0x000000010cdb06cb __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
          19  FrontBoardServices                  0x000000010cdb0544 -[FBSSerialQueue _performNext] + 189
          20  FrontBoardServices                  0x000000010cdb08cd -[FBSSerialQueue _performNextFromRunLoopSource] + 45
          21  CoreFoundation                      0x0000000106158761 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
          22  CoreFoundation                      0x000000010613d98c __CFRunLoopDoSources0 + 556
          23  CoreFoundation                      0x000000010613ce76 __CFRunLoopRun + 918
          24  CoreFoundation                      0x000000010613c884 CFRunLoopRunSpecific + 420
          25  UIKit                               0x000000010882caea -[UIApplication _run] + 434
          26  UIKit                               0x0000000108832c68 UIApplicationMain + 159
          27  realapp                             0x0000000104f8075f main + 111
          28  libdyld.dylib                       0x000000010aabc68d start + 1
          29  ???                                 0x0000000000000001 0x0 + 1
        )
        libc++abi.dylib: terminating with uncaught exception of type NSException
        (lldb) 
        
        • Re: Thread 1: signal SIGABRT
          eskimo Apple Staff Apple Staff (7,190 points)

          SIGABRT means that someone called abort() in order to deliberately crash your process.  Code that does that usually logs the reason why, and this is no exception.  From the log you posted:

          '[setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key logIn.'

          That is, someone tried to set the logIn property of on the ViewController class and that failed because that class does not support that property.

          The log also includes a backtrace so that you can identify who that “someone” is:

          0  CoreFoundation    … __exceptionPreprocess + 171 
          1  libobjc.A.dylib    … objc_exception_throw + 48 
          2  CoreFoundation    … -[NSException raise] + 9 
          3  Foundation        … -[NSObject(NSKeyValueCoding) setValue:forKey:] + 291 
          4  UIKit              … -[UIViewController setValue:forKey:] + 88 
          5  UIKit              … -[UIRuntimeOutletConnection connect] + 109 
          6  CoreFoundation    … -[NSArray makeObjectsPerformSelector:] + 256 
          7  UIKit              … -[UINib instantiateWithOwner:options:] + 1867 
          8  UIKit              … -[UIViewController _loadViewFromNibNamed:bundle:] + 386 
          9  UIKit              … -[UIViewController loadView] + 177 
          10  UIKit              … -[UIViewController loadViewIfRequired] + 201 
          11  UIKit              … -[UIViewController view] + 27 
          12  UIKit              … -[UIWindow addRootViewControllerViewIfPossible] + 71 
          13  UIKit              … -[UIWindow _setHidden:forced:] + 293 
          14  UIKit              … -[UIWindow makeKeyAndVisible] + 42 
          15  UIKit              … -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4818 
          …
          26  UIKit              … UIApplicationMain + 159 
          27  realapp            … main + 111 
          28  libdyld.dylib      … start + 1 
          29  ???                … 0x0 + 1
          

          Frames 11 through 7 make it clear that a view controller (and presumably that means your ViewController) was trying to load its view from a nib, and the nib loading code has crash trying to set a property of your view controller.

          You should look in ViewController for a logIn outlet that’s wired up incorrectly, either because it’s not meant to be there or because you didn’t declare the logIn property properly in your code.

          Share and Enjoy

          Quinn “The Eskimo!”
          Apple Developer Relations, Developer Technical Support, Core OS/Hardware
          let myEmail = "eskimo" + "1" + "@apple.com"