我剛剛在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
我剛剛在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
選擇Main.storyboard並在File Inspector中對本地化部分進行以下更改。
你選用什麼樣的項目(空的,單一視圖)? 您可以在項目資源中看到Main.storyboard文件嗎? 確保在您的目標(「常規」選項卡)下的「部署信息」部分中,您已在主界面字段中選擇了「主」。
檢查中的.plist故事板的名稱顯示所選行,並相應地,如果改變你正在實例化故事板。 – suhit
@suit與SB名稱相同。仍然我有錯誤 – codercat
此鏈接可能會幫助您http://stackoverflow.com/questions/8694742/could-not-find-a-storyboard-named-mainstoryboard-in-bundle-nsbundle – suhit