storyboard 错误

来源:互联网 发布:python 页面加载完成 编辑:程序博客网 时间:2024/06/05 18:56

iPhone - 常见错误的解决方法


1、从网上下载一个程序,在编译时出现下面的错误:

The run destination My Mac 64-bit is not valid for Running the scheme 'MyTest'.

The scheme 'MyTest' contains no buildables that can be built for the SDKs supported by the run destination My Mac 64-bit. Make sure your targets all specify SDKs that are supported by this version of Xcode.
解决方法是:在Build Setting中,将Base SDK,全部修改成iOS 5.1

如下图所示:




















2、出现下面的错误:

StoryboardApp[8593:207] Failed to instantiate the default view controller for UIMainStoryboardFile 'MainStoryboard' - perhaps the designated entry point is not set?

这个问题的原因应该是在你的StoryBoard中没有一个view controller设置了Initial Scene。您需要选择一个view conroller作为story board的第一个界面:




原文地址http://blog.csdn.net/ztp800201/article/details/7901605



原创粉丝点击