網上比較常規的幾個問題就不細說了。c++
什麼HTTPS、bitcode、什麼什麼的。windows
記錄幾個本身又遇到了可是網上沒有說的。xcode
啓動應用報錯,app
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application windows are expected to have a root view controller at the end of application launch'code
*** First throw call stack:it
(0x185f1cf5c 0x19ab0ff80 0x185f1ce2c 0x186e0bf3c 0x18b7146a4 0x18b711300 0x18fc637ec 0x18fc63b6c 0x185ed45a4 0x185ed4038 0x185ed1d38 0x185e00dc0 0x18b4e00c8 0x18b4daf60 0x1001d2b24 0x19b33a8b8)io
libc++abi.dylib: terminating with uncaught exception of type NSExceptionexception
Application windows are expected to have a root view controller at the end of application launch程序
didFinishLaunchingWithOptions 的時候xcode7
self.window.rootViewController = [[UIViewController alloc] init]; 這樣一下,而後再添加上述代碼,而後再這個方法最後使用
[self.window addSubview:_welcomeViewContraller.view];
解決了這個問題。可能個人這個和正常的有些不同,僅供參考。