gavinkwoe / BeeFramework

[Experimental] A semi-hybrid framework that allows you to create mobile apps using Objective-C and XML/CSS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

在ios9 xcode7下, 编译 example成功,运行报如下错误,是怎么回事啊

Debenson opened this issue · comments

2015-09-22 23:13:05.856 example[6572:427606] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application windows are expected to have a root view controller at the end of application launch'
*** First throw call stack:

所有window 必须要有root view controller

没解决之前 你可以把services中继承BeeUIWindow的grid inspector给移除掉

打log,rootViewControl也有的。用下面替换是好的,也不知道root casue 是什么。
UIViewController *viewController = [[UIViewController alloc] init];
self.window.rootViewController = viewController;
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];

commented

官方能不能更新一个Example?第一次运行就出错,让人很不放心啊。

打开Bee_Precompile.h 然后将
#define BEE_DEVELOPMENT (OFF)
#define BEE_PERFORMANCE (OFF)
#define BEE_LOG (OFF)
#define BEE_UNITTEST (OFF)
#define BEE_LIVELOAD (OFF)
改成OFF就好了