忽略 Xcode4 中的“属性不可用”警告
我在工具栏项中使用了很多“自定义标识符”,这在 Xcode4 中很好,但在构建项目时它给了我一堆警告:
属性不可用 Interface Builder 3.2 之前版本中的自定义标识符
有没有办法在 Xcode4 中忽略这些警告?当我搜索“真正的”警告和错误时,它非常混乱。
I'm using a lot of "custom identifiers" for Toolbar Items, which is fine in Xcode4, but it gives me a bunch of warnings when I build the project:
Attribute Unavailable
Custom Identifiers in Interface Builder versions prior to 3.2
Is there a way to ignore these warnings in Xcode4? It's pretty messy when I search for "real" warnings and errors.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
单击您的 xib 文件。在属性上,您将看到以下部分:
。
将“开发”更改为 Interface Builder 3.2,您将不再收到这些警告。
当前 iOS Xcode 用户的更新:
在iOS 4.3中,IDE内置了IB,选择xib文件后右侧会有一些图标,第一个图标称为“文件检查器”(看起来像一个有折叠的页面),这是部分驻留(见下文)。
Click on your xib file. On the properties you will see the following section:
.
Where it says "Development" change that to Interface Builder 3.2 and you should no longer receive those warnings.
UPDATE for current iOS Xcode users:
In iOS 4.3 - IB is built into the IDE, and on the right after selecting the xib file there will be some icons, the first icon is called "File Inspector" (looks like a page with a fold in it) that is where the section resides (see below).
我正在运行 Xcode 4.2 build 4C199。
单击“文件检查器”。正如 tony.stack 提到的,请查看“interface BuilderDocument”
set Deployment = "项目 SDK 版本"
设置开发=“xcode 4.2”
即使您运行的是 xcode 4.2,开发也设置为默认 4.1,所以您会收到该警告。
I am running Xcode 4.2 build 4C199.
Click File Inspector. As tony.stack mentioned look under "interface BuilderDocument"
set Deployment = "Project SDK version"
set Development = " xcode 4.2"
Even if you are running xcode 4.2, the Development is set to default 4.1, So you get that warning.
您是否尝试过查看 Interface Builder 中的“文档信息”窗口?您可以在那里设置支持的版本。
Have you tried looking at the "Document Info" window in Interface Builder? You can set supported versions there.