gavinkwoe / BeeFramework

[Experimental] A semi-hybrid framework that allows you to create mobile apps using Objective-C and XML/CSS
MIT License
3.33k stars 1.06k forks source link

IOS9 运行报 NSScanner: nil string argument #139

Open developerXiaoquan opened 8 years ago

developerXiaoquan commented 8 years ago

2015-09-18 11:56:21.748 priest[13260:339368] *\ Assertion failure in -[UIApplication _runWithMainScene:transitionContext:completion:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3505.16/UIApplication.m:3294 2015-09-18 11:56:24.068 priest[13260:339368] NSScanner: nil string argument 2015-09-18 11:56:24.068 priest[13260:339368] NSScanner: nil string argument libc++abi.dylib: terminate_handler unexpectedly threw an exception

期望更新处理. 辛苦了.

developerXiaoquan commented 8 years ago

上面说的只要在Bee_Precompile.h文件中把 BEE_DEVELOPMENT 设置成 ON 就会出现 设置成OFF就好了。 这样开发的时候Liveload功能就无法使用了。

gavinkwoe commented 8 years ago

是否有分析出是什么原因造成的?

developerXiaoquan commented 8 years ago

是某一个service导致的,我把所有的service删除掉设置BEE_DEVELOPMENT为ON并没有问题, 然后添加了bee.services.liveload并没有报错,既然liveload能用就没再去折腾看是哪个具体的service报错了。

附上最开始报错使用到的service:

  1. bee.services.debugger
  2. bee.services.grid
  3. bee.services.inspector
  4. bee.services.liveload
  5. bee.services.logger
  6. bee.services.network
  7. bee.services.network.browser
  8. bee.services.network.server
  9. bee.services.wizard
kakuchichi commented 8 years ago

发现是services中 grid inspector这类继承BeeUIWindow的,window没有设置rootViewController的缘故~