views:

2041

answers:

7

I have an iPhone app that's shipping (vConqr - you should go and buy it :-) ). I build the project on several different machines, including a colleague's, and it's been working fine. However, just recently, on my second dev machine my build fails every time with the error:

/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copyplist Entitlements.plist --outdir /Code/iPhone/VirtualConquest/build/Debug-iphonesimulator/VirtualConquest.app

error: can't exec '/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copyplist' (No such file or directory)

I've reinstalled XCode - twice! (the second time I deleted the files under /Developer/Library/Xcode first). I've deleted my source tree and checked out of source control fresh. The error persists.

The Entitlements.plist file has been there for a couple of weeks, since I started my last beta programme. I can't be sure, but I suspect I had not compiled on my second dev machine since it was added. However, as well as my primary dev machine, it also all builds fine on my colleagues machine, so I'm baffled what the difference can be.

I've Googled for the error, but either my Google-Fu is bunk or this is not a common error - I've found no relevant hits.

This is really frustrating, not least because I use my second machine as a soak test/ continuous integration machine.

Anyone come across the same thing, or have any other suggestions?

A: 

That file exists on my machine. Try doing a third clean reinstall of Xcode (after deleting the entire /Developer tree - the Xcode install should re-add that whole thing). Then immediately check to see if that file exists, as it should.

Kevin Ballard
The file was there the first time, and was in the folder I deleted. It was re-added after my second (clean) install. I don't think the issue is with the plugin itself. Interestingly, if I delete the Entitlements.plist file it works (although not for ad-hoc builds, of course)
Phil Nash
+6  A: 

I hit this problem and chased it down to a problem with my ruby install - well not really a problem but anyway

Solved it by doing a symlink to the correct place for my ruby install

sudo ln -s /opt/local/bin/ruby /usr/bin/ruby

Hope this helps someone as it drove me insane! Also, may not be your ruby install this file just loads the core libraries so just run the file, if it exists, to track it down

Thanks for the response Jimmy. I did do a Ruby install at around the same time, IIRC - that may well have been it!
Phil Nash
By all means, do not mess with /usr/bin. Just remove /opt/local/bin from your PATH when you want to build this software to avoid any MacPorts interference.
Raim
Thanks Jimmy. I did similar.
Tim Haines
A: 

Thank you Jimmy. That worked great :)

+1  A: 

yeah, I have this from a custom ruby install, a more universal fix is:

sudo ln -s `which ruby` /usr/bin/ruby

A: 

This happened to me but it was related to a corrupt language strings file. I had an extra character in one of the strings (see the example)

x"english string" = "international string";

Ed Trujillo
A: 

In my case the problem was much simpler:

I deleted a few Localization.strings files from the SVN and forgot to remove them from the Xcode-project too.

I removed them from the project and now its working.

RhodanV5500
A: 

grady player, you got it! Your answer helped me.