Reputation: 3655
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:
log:
project navigator excerpt:
Upvotes: 1
Views: 152
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:
Upvotes: 1