Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build Failed: error: make directory File exists

Tags:

xcode

ios

xcode6

I have an app in the app store and have built and released several updates without issue. I am working on a major update, but having a significant error that I have been Googling for over a week now.

I can build the app for the simulator, but when I try to build for iOS device (such as with my iPhone 6 plugged in) or Archive (so that I can distribute via TestFlight), I get the same error every time. Full error posted below.

Things I have tried:

  • Cleaning the Project
  • Restarting xCode
  • Restarting my Mac - Deleting the Derived Data folder
  • Updating xCode
  • Deleting and Reinstalling xCode

The actual error received is:

CpResource Libraries/AppIRater/en.lproj /Users/terrencewilliams/Library/Developer/Xcode/DerivedData/SMBox-gbfftxbyzlmadeazsrisoquokaxr/Build/Intermediates/ArchiveIntermediates/SMBox/InstallationBuildProductsLocation/Applications/SMBox.app/en.lproj cd "/Users/terrencewilliams/Desktop/APP/SMBox/APP Builds - v.2.0/SMBox2 4" export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -strip-debug-symbols -strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -resolve-src-symlinks /Users/terrencewilliams/Desktop/APP/SMBox/APP\ Builds\ -\ v.2.0/SMBox2\ 4/Libraries/AppIRater/en.lproj /Users/terrencewilliams/Library/Developer/Xcode/DerivedData/SMBox-gbfftxbyzlmadeazsrisoquokaxr/Build/Intermediates/ArchiveIntermediates/SMBox/InstallationBuildProductsLocation/Applications/SMBox.app

error: make directory /Users/terrencewilliams/Library/Developer/Xcode/DerivedData/SMBox-gbfftxbyzlmadeazsrisoquokaxr/Build/Intermediates/ArchiveIntermediates/SMBox/InstallationBuildProductsLocation/Applications/SMBox.app/en.lproj: File exists

I really need to get this update rolling, but can't seem to actually build it. Can anyone advise if there might be some underlying cause that I don't see relating to the derived data folder?

like image 724
Backstage Apps Avatar asked Nov 23 '14 02:11

Backstage Apps


3 Answers

I solved this problem by removing duplicate bundle from my project which I have added from other source. Look for duplicate copy of en.lproj and remove it this might solve ur problem.

like image 96
vikas chandra Avatar answered Oct 20 '22 15:10

vikas chandra


My issue was due to a merge conflict I had the same dynamic framework in "Embedded Binaries" listed twice. Removing the duplicate framework allowed me to build successfully.

like image 27
JAL Avatar answered Oct 20 '22 16:10

JAL


This path exists as a file (whereas itthe build is trying to create a directory): /Users/terrencewilliams/Library/Developer/Xcode/DerivedData/SMBox-gbfftxbyzlmadeazsrisoquokaxr/Build/Intermediates/ArchiveIntermediates/SMBox/InstallationBuildProductsLocation/Applications/SMBox.app/en.lproj

I suggest you just delete /Users/terrencewilliams/Library/Developer/Xcode/DerivedData and rebuild.

Yes, I realize you said you deleted the DerivedData folder already. Did you really delete that one? If so, what is creating the en.lproj? You might want to just search through the build log for it.

like image 31
Jeremy Huddleston Sequoia Avatar answered Oct 20 '22 16:10

Jeremy Huddleston Sequoia