2013-11-21 35 views
1

我剛剛在Xcode 5中創建了一個新的iPhone應用程序項目,並將iOS Deployment Target設置爲5.0。我試着運行了iOS 5.1模擬器的應用程序,但我得到了以下錯誤:找不到xcode5中的故事板for iOS 5

Could not find a storyboard named ‘Main’ in bundle NSBundle 
+0

檢查中的.plist故事板的名稱顯示所選行,並相應地,如果改變你正在實例化故事板。 – suhit

+0

@suit與SB名稱相同。仍然我有錯誤 – codercat

+0

此鏈接可能會幫助您http://stackoverflow.com/questions/8694742/could-not-find-a-storyboard-named-mainstoryboard-in-bundle-nsbundle – suhit

回答

4

選擇Main.storyboard並在File Inspector中對本地化部分進行以下更改。

enter image description here

0

你選用什麼樣的項目(空的,單一視圖)? 您可以在項目資源中看到Main.storyboard文件嗎? 確保在您的目標(「常規」選項卡)下的「部署信息」部分中,您已在主界面字段中選擇了「主」。

0

試試這個 打開你的項目的info.plist,並刪除截圖

enter image description here

+0

之後,我得到了同樣的錯誤。使用我的答案,它會幫助你並修復錯誤 – codercat