Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Interface Builder XIB Error - Unable to write to path

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)

like image 724
Warren P Avatar asked Oct 30 '13 16:10

Warren P


1 Answers

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

like image 59
Josue Avatar answered Oct 07 '22 01:10

Josue