2013-09-29 62 views
0

我已經在這幾個小時,並沒有線索如何解決。我在Library/Logs目錄中的.asl文件中看到以下警告消息。ASL警告,但沒有應用程序崩潰

Sep 28 21:16:44 MacBook-Pro.local SpringBoard[17848] <Warning>: *** error reading settings archive file: <SBRootSettings: /Users/{user}/Library/Application Support/iPhone Simulator/7.0-64/Documents/com.apple.springboard.settings/RootSettings.plist> 
Sep 28 21:16:49 MacBook-Pro.local SpringBoard[17848] <Warning>: Application windows are expected to have a root view controller at the end of application launch 
Sep 28 21:16:49 MacBook-Pro.local SpringBoard[17848] <Warning>: Using your own bundle identifier as an NSUserDefaults suite name does not make sense and will not work. Break on _NSUserDefaults_Log_Nonsensical_Suites to find this 
Sep 28 21:16:49 MacBook-Pro.local SpringBoard[17848] <Warning>: Launch Services: Registering unknown app identifier com.apple.mobilemail failed 

該應用程序沒有崩潰。但是,它只顯示這些日誌。 有時候,我看到下面的錯誤消息,在我的控制檯區域(之後我已經退出模擬器): -

Terminating in response to Springboard's termination 

我試過很多次谷歌搜索該錯誤,但沒有運氣。我正在使用故事板,並且我的導航控制器已被設置爲初始視圖控制器。另外,我的故事板已被設置爲部署信息的主界面。我在我的代表中有以下功能: -

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 
{ 
    return YES; 
} 

我不確定是否有1個問題或多個問題。你能讓我知道如何繼續?

回答

0

閱讀「應用程序窗口預計將有一個根視圖控制器」 我想在你的故事板,你需要一個視圖控制器有框「是初始視圖控制器」檢查(這是下屬性標記點擊視圖控制器類時)或與您的應用程序確實啓動

[self.window setRootViewController:controller] 

如果您在代碼中創建視圖控制器。

+0

是。我的導航控制器已經設置爲我的故事板中的「初始視圖控制器」 – Max

+0

您是在設備上還是在模擬器中啓動應用程序?如果它在設備上,我會檢查包標識符並確保它與開發配置文件相同 –

相關問題