1. nsunknownkeyexception

    Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIApplication 0x14e7b130> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key view.

  解决方法:Main Interface  设置为空。 

  好几个错误和Deployment Info 里面的设置有关

  Device Orientation 选项,Requires full screen 这几个选项可以重新选择试试。

      http://stackoverflow.com/questions/8232766/terminating-app-due-to-uncaught-exception-nsunknownkeyexception

 

 2: ionic 在xcode下面编译时,需要在search Paths 中的header Serarch Paths 中增加下面路径:

  "$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include"

 3.swift 如果版本比较早,不支持swift。就在搜索里面,查找swift ,然后把所有都置为no。编译和上传appstore都会遇到这个问题。

    或者也可能需要在命令行状态下执行:ionic build ios 

   重新编译一下。