Ignore “Attribute Unavailable”-Warning in Xcode4

后端 未结 3 567
一个人的身影
一个人的身影 2021-01-18 01:21

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:

A

相关标签:
3条回答
  • 2021-01-18 01:29

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

    0 讨论(0)
  • 2021-01-18 01:42

    Click on your xib file. On the properties you will see the following section:

    enter image description here.

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

    enter image description here

    0 讨论(0)
  • 2021-01-18 01:51

    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.

    0 讨论(0)
提交回复
热议问题