Xcode Version 6.1.1 (6A2008a)
Error: libswiftCore.dylib`swift_dynamicCastClassUnconditional
and Swift dynamic cast failed
I am trying to test and I am coming across this error that I am unsure about how to fix. Can someone please shed some light on this?
Error happens:
The error happens with this cast:
var delegate = UIApplication.sharedApplication().delegate as AppDelegate
After reading this post: I deleted the AppDelegate.swift from the test target but then I get an error when building as the compiler complains about not knowing about "AppDelegate" in the cast. I am confused?!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…