Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Distribution build - "No such file or directory exists"

Tags:

iphone

While creating an ad-hoc build in Xcode 4, I get an error "Operation couldn't be completed. No such file or direcotry exist" when I select Share in "Organizer - Archive" window. I have also included Entitlements.plist file, even status message also displays the build is successful. I don't know what the problem is and where am I going wrong. Please suggest.

like image 307
SamG Avatar asked Apr 26 '11 07:04

SamG


2 Answers

After downloading XCode 4.3 beta with the IOS 5 SDK, the Organizer function to share and archive stopped working with a cryptic error "No such file or directory found". It turns out that this is related to having two different versions of codesign_allocate . To fix the problem, do the following in a terminal window.

sudo ln -s /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate /usr/bin

I've put this on my blog http://blog.dmahajan.net as well.

like image 122
EasyCoder Avatar answered Nov 17 '22 01:11

EasyCoder


Did you sign the archived version with your Ad-Hoc profile, if so then select "don't Re-sign" in the share screen drop down.

like image 42
rckoenes Avatar answered Nov 16 '22 23:11

rckoenes