Uploaded image for project: 'Swift'
  1. Swift
  2. SR-6657

Couldn't load 'self' because its value couldn't be evaluated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: LLDB for Swift
    • Labels:
      None
    • Environment:

      Xcode Version 9.2 (9C40b)
      macOS 10.13.2

      Description

      At runtime, the value could not be evaluated.

      public protocol CardableScene: class where Self: UIViewController {
        var showsNavigationBar: Bool { get }
      }
      
      public extension CardableScene {
        
        var showsNavigationBar: Bool {
          return navigationItem.title != nil
        }
      }
      

      (lldb) po scene.showsNavigationBar
      2017-12-20 07:30:23.558169+0000 DanceClass[1194:29854] +[DanceClass.DanceClassViewController navigationItem]: unrecognized selector sent to class 0x109344cd0
      error: warning: couldn't get required object pointer (substituting NULL): Couldn't load 'self' because its value couldn't be evaluated

        Attachments

          Activity

            People

            Assignee:
            aprantl Adrian Prantl
            Reporter:
            robdashnash Rob Nash
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated: