打开 Interface Builder (Mac OS X Lion) 时出现错误
我正在使用 13 英寸 Macbook Pro。我正在开始一个大学项目;我正在制作一个 iPhone 应用程序。我购买了 DevKit,但在打开 Xcode 时遇到了一些问题,我意识到自从下载它以来我已经升级到 Lion并且需要升级,所以我升级了,所以 Xcode 4.3
现在我可以很好地使用 Xcode(据我所知),但是当我尝试制作新的 iPhone 应用程序模板/项目时,Interface Builder 给了我这个错误:
这个版本界面生成器不支持针对“iPhone/iPod touch”的“Interface Builder Cocoa Touch Document (XIB 3.x)”类型的文档,
如果我尝试制作空白文档,则任何其他选项:
Interface Builder 无法 。打开文件“Empty.xib”。 iPhone/iPod touch开发需要iOS 3.1 SDK。
现在,我查了一下,根据AppStore(我被迫从那里下载它)iOS 5.0/5.1 SDK是。我尝试重新下载几次,但没有成功,我觉得这真的很愚蠢,所以请随时给我打电话。
I'm using a 13" Macbook Pro. I'm beginning a project for University; I'm making an iPhone application. I bought the DevKit but had some problems opening Xcode, I realiased I'd upgraded to Lion since I downloaded it and needed to upgrade, so I did, so Xcode 4.3.
Now I can use Xcode fine (as far as I can tell) but Interface Builder gives me this error when I try to make a new iPhone Application Template/Project:
This version of Interface Builder does not support documents of type "Interface Builder Cocoa Touch Document (XIB 3.x)" targeting "iPhone/iPod touch".
And this one if I try to make a blank one, of any other the other options:
Interface Builder was unable to open the document "Empty.xib". iPhone/iPod touch development requires the iOS 3.1 SDK.
Now, I checked, and according the the AppStore (which is where I was forced to download it from) iOS 5.0/5.1 SDK is included. I tried to redownload a few times but to no avail. I have a feeling this is something really stupid, so feel free to call me so.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该使用 Xcode 本身来创建、查看和修改 iOS 5 项目的 xib 文件。 Apple 不再为 iOS 开发提供 Interface Builder 作为单独的应用程序。
Xcode 4 允许从
File > 创建用户界面文件。新的>新文件
菜单项。当您从 Xcode 的项目导航器中选择用户界面文件(您可以通过“View > Navigators > Show Project Navigator”或按 Cmd-1 显示该文件)时,将出现一个用户界面编辑器,其中包含源代码通常会出现编辑器。You should be using Xcode itself to create, view, and modify xib files for iOS 5 projects. Interface Builder as a separate application is no longer provided by Apple for iOS development.
Xcode 4 allows creation of user interface files from the
File > New > New File
menu item. When you select a user interface file from Xcode's project navigator (which you can show viaView > Navigators > Show Project Navigator
or by pressing Cmd-1), a user interface editor appears where the source code editor typically appears.