I get sporadic, occasional one-time errors that often clear up on a second attempt at building, after cleaning or holding down the Option key and clicking Product -> Clean Build Folder.
Is there anything I can do to avoid errors like this one which seem to be tied to a single .xcproj (XCode Project) that is my main xcode project. It never happens on a new or empty product, and always seems to fail on the same Nib file (MainWindow-iPhone.nib
).
full error message:
/Users/user/XCodeWork/iPhoneDev/MyAppSourceFolder/en.lproj/MainWindow-iPhone.xib:
Compilation failed. Unable to write to path:
/Users/user/Library/Developer/Xcode/DerivedData/MYAPPNAME-
dudnhxzgpqtcnqcgaguirvkhmvco/Build/Intermediates/ArchiveIntermediates/
MYAPPNAME/InstallationBuildProductsLocation/Applications/MyAppname.app/
en.lproj/MainWindow-iPhone.nib
I've had a look at folder permissions and I have full rights to the Intermediates folder
paths shown above. Just incase there is some sudo
like crap happening inside XCode's build, I set the path to everyone having Read & Write permission, but that does not fix it.
The above error happens during regular debug build, as well it occurs during Archive operations, and often it prevents me from completing the archive step.
I am using XCode 5.0.1 (5A2053) on OS X Mavericks 10.9 (13A603)
I found the solution!! (At least it has worked for me).
For every xib's that we've problems, in the right panel go to the first tab, "Interface Builder Document" -> "Builds for" and select "iOS 7.0 and Later". My old configuration was "iOS 4.3 and Later".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With