Could not cast value of type 'UIViewController'

could not cast value of type 'uitableviewcell'
could not cast value of type uiviewcontroller
could not cast value of type 'nsnull

I am trying to implement BWWalkthrough in my project. However I get an error stating

Unknown class _TtC20BWWalkthroughExample27BWWalkthroughViewController in Interface Builder file.
Could not cast value of type 'UIViewController' (0x195bca580) to 'AppName.BWWalkthroughViewController' (0x10042c3a0).
(lldb) 

It is pointing at the below code

let walkthrough = stb.instantiateViewControllerWithIdentifier("walk") as! BWWalkthroughViewController

I don't know why this is happening, any help is appreciated, Thank you.

Also feel free to ask more code from my project.

Your storyboard doesn't seem to be linked to a BWWalkthroughViewController. Find where the view controller should be a BWWalkthroughViewController, and check if it is one.

Could not cast value of type 'Swift.Int64' (0x10a3a9f80) to 'Swift , Could not cast value of type 'Swift.Int64' (0x10a3a9f80) to 'Swift.String' (​0x10a3b04d8). #2197. Closed. etayluz opened this issue on May 10,  For those who are not wanting to use a Storyboard, you can simple create the view as an SKView in the ViewController's loadView function. class ViewController: UIViewController { override func loadView() { self.view = SKView() } override func viewDidLoad() { let skView = view as!

I have same issue.

I can fix to set BWWalkthroughViewController, not BWWalkthroughPageViewController in my walthrough storyboard.

Could not cast value of type #MyClass to NSObject · Issue #67 , Does it mean my class has to be inherited from NSObject to be used as Promise type? It stops at this library code. static func asValue(_ value:  Could not cast value of type 'UIViewController' (0x1af5bdf60) to 'WWCalendarTimeSelector.WWCalendarTimeSelector' (0x1016a1908). Could not cast value of type 'UIViewController' (0x1af5bdf60) to 'WWCalendarTimeSelector.WWCalendarTimeSelector' (0x1016a1908).

In the IB make sure that you set the class of the master view controller into BWWalkthroughViewController, as well as the module BWWalkthrough. See the image . I just ran into this problem myself, easy step to forget sometimes.

Signal SIGABRT and Could not cast value of type |Apple , I got Could not cast value of type 'NSNull'to 'NSDictionary' log and a Signal SIGABRT at the line. Could not cast value of type 'MyApp.LibraryCollectionViewController' (0x1010b01f0) to 'MyAppTests.LibraryCollectionViewController' (0x10bd7f580). Any help would be appreciate, thanks in advance. Update 1: When I was creating the view controller, the last step shows 2 checkboxes under a Target header, I enabled both of them,

Please follow these steps to fix your issues.

  1. Create BWWalkthroughViewController ViewController Class.
  2. Main StoryBoard
  3. BWWalkthroughViewController
  4. Show Identity Inspector.
  5. Add BWWalkthroughViewController
  6. Check again

Receiving error of "Could not cast value of type 'NSIndexPath , Receiving error of "Could not cast value of type 'NSIndexPath' (0x107a89440)" and not sure how to fix it. Question. [deleted]. Share3. 1. 3 Comments sorted by  Participate in discussions with other Treehouse members and learn. Could not cast value of type UIView to UIImageView. When building a playlist App for iOS, I get

Error :- Could not cast value of type '__NSSingleEntryDictionaryI , Error :- Could not cast value of type '__NSSingleEntryDictionaryI' (0x11106ce98) to 'NSMutableDictionary' (0x11106f2b0). Roast my code. I don't know how to  When we pass a Swift object in such a method and try to restore the type for the returned value, the Swift dynamic cast will crash in case the object is a hashable container with object of custom Hashable (non-builtin and non-NSObject) types in it:

iOS Apprentice - Checklists Ch 18 - Errors - Cast Value of Type, Could not cast value of type '__NSCFNumber' (0x111528208) to 'Checklists.​Checklist' (0x10ffc98c0). I also get this error: Terminating app due  could not find Lazy implicit value of type io.circe.generic.decoding.DerivedDecoder[A] implicit val comDecoder: Decoder[SolrDoc] = deriveDecoder I want to decode the JSON Object to scala case class object Do you have any solution?

Could not cast value of type 'UIViewController', Could not cast value of type 'UIViewController' (0x195bca580) to 'AppName.​BWWalkthroughViewController' (0x10042c3a0). (lldb) It is pointing at the below  I have two classes MenuVC, CategoryVC and CategorySubclassVC (which is a subclass of CategoryVC and I used it to fill data). I also have a Storyboard for CategoryVC with Storyboard ID categoryID. In

Comments
  • did you set the class of the custom view controller explicitly to BWWalkthroughViewController in Interface Builder?
  • Swift does not support name de-mangiing yet so you get: _TtC20BWWalkthroughExample27BWWalkthroughViewController, this is similar to C++ name mangling but that was addressed for error messages decades ago.