SamG
SamG

Reputation: 173

Distribution build - "No such file or directory exists"

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.

Upvotes: 7

Views: 4609

Answers (4)

jdtogni
jdtogni

Reputation: 129

Another possibility: duplicated keys in your keychain. Solved my problem.

Upvotes: 1

rckoenes
rckoenes

Reputation: 69469

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.

Upvotes: 5

EasyCoder
EasyCoder

Reputation: 503

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.

Upvotes: 7

SamG
SamG

Reputation: 173

Guys, Another thing I found is that if you've developed an app in xcode < xcode4 and you are creating builds in xcode4 then you might get this error.

To resolve this, follow these steps- 1. In Entitlements.plist, add a key- "application-identifier", type- "String", value - "$(AppIdentifierPrefix)$(CFBundleIdentifier)"

  1. Now create an "Archive" build, when the window appears, right click on the app name and "Show in finder".
  2. AppName -> Right Click -> Show Package Contents.
  3. Products -> .app file. Now use this .app file along with the provisioning profile.

This solution worked for me very well.

Upvotes: 1

Related Questions