Ignore “Attribute Unavailable”-Warning in Xcode4

江枫思渺然 提交于 2019-12-04 03:06:48

问题


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.


回答1:


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).




回答2:


I am running Xcode 4.2 build 4C199.

  1. Click on xib file,
  2. on the right, click on Utilies View
  3. 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.




回答3:


Have you tried looking at the "Document Info" window in Interface Builder? You can set supported versions there.



来源:https://stackoverflow.com/questions/5992079/ignore-attribute-unavailable-warning-in-xcode4

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!