Removed dependency on on appdelegate and added asserts to detect crashes from misconfigured projects