刚刚安装了 xcode 5 并且缺少故事板
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17047409/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Just installed xcode 5 and have missing storyboards
提问by SteveM
I am running xcode 4.6.2 for production work.
我正在运行 xcode 4.6.2 进行生产工作。
I downloaded the new Xcode 5/ios 7 sdk to see what my projects would look like. Xcode 5 installed fine, opened fine and opened one of projects fine. I took note of the new look but made NO changes. Closed xcode 5 and when went back to xcode 4.6.2 I saw that storyboards are missing!!!
我下载了新的 Xcode 5/ios 7 sdk 来看看我的项目会是什么样子。Xcode 5 安装正常,打开正常并打开了一个项目。我注意到了新外观,但没有做任何更改。关闭 xcode 5,当回到 xcode 4.6.2 时,我看到故事板丢失了!!!
Please help. Anyone see this and no how to correct??? I still need to use Xcode 4 for production work.
请帮忙。任何人都看到这一点,但没有如何纠正???我仍然需要使用 Xcode 4 进行生产工作。
采纳答案by Nicholas Smith
I've had one open in both today without issues, however it may have set the tools version in the file and that's causing XCode to trip up. If you open the Storyboard file in a text editor there's version
and toolsVersion
, try changing those to the correct version of the XCode 4 tools you've got installed.
我今天在这两个中都打开了一个没有问题,但是它可能在文件中设置了工具版本,这导致 XCode 跳闸。如果你在一个文本编辑器打开文件故事板还有的version
和toolsVersion
,尝试改变那些你已经安装了Xcode的4个工具的正确版本。
回答by Idan
Open the Storyboard file on Xcode 5, And then: 1. Open file inspector 2. On "Interface Builder Documents" section change "Open with" to Xcode 4.6 (if it's 5.x). 3. Save, Close the project and open that with old Xcode.
在 Xcode 5 上打开 Storyboard 文件,然后: 1. 打开文件检查器 2. 在“Interface Builder Documents”部分将“Open with”更改为 Xcode 4.6(如果是 5.x)。3. 保存,关闭项目并用旧的 Xcode 打开它。
It should work now.
它现在应该可以工作了。
This is same method like on earlier releases so I assume that's ok for NDA case (you can do the same thing on Xcode 4.6 to work with older version).
这与早期版本中的方法相同,所以我认为这对于 NDA 情况没问题(您可以在 Xcode 4.6 上做同样的事情以使用旧版本)。