z8000
z8000

Reputation: 3655

Why is XCode 4 compiling ~ 3000 XIBs when I only have ~ 200?

I am working on an app that has 12 localizations of about 16 XIBs.

XCode 4, after a clean and rebuild, says it is compiling 2704 XIBs!

The build log shows that XCode is compiling the same XIB many times for each localization.

Anyone know why this would be?

Note that everything works fine in the app -- this doesn't seem to have any effect as you'd imagine. But it's just wasting my time! :-)

status:

enter image description here

log:

enter image description here

project navigator excerpt:

enter image description here

Upvotes: 1

Views: 152

Answers (1)

iHunter
iHunter

Reputation: 6205

Yeah, I have encountered this XCode issue too. I don't know how to stop XCode adding xib files multiple times, but there is a workaround to shorten your project build time: you should go to the current target's Build Phases tab and remove all duplicated xibs in Copy Bundle Resources stage, leaving the only copy for each one.

To make my answer more clear:

Inside the Copy Bundle Resources list you should leave only the one item for each individual xib file, in spite of number of languages you have. Something similar to:

screen

Upvotes: 1

Related Questions