x


Xcode: Build and Archive error "No such file or directory"

When I try to use "Build and Archive" in Xcode to build an ad-hoc distribution of my game, I get an alert with the error message:

The operation couldnt be completed. No such file or directory

Unfortunately it doesn't say what file or directory is missing.

Just building the game does not cause any problems, nor does "Build and Debug". How do I fix this?

I'm using Unity iPhone 1.7 and Xcode 3.2.2.

more ▼

asked Jul 14 '10 at 12:41 AM

malcolmryan gravatar image

malcolmryan
101 3 5 13

I just upgraded to Xcode 3.2.3 and still get the same problem.

Jul 14 '10 at 05:23 AM malcolmryan

It happens even with a completely empty Unity project.

Jul 14 '10 at 05:44 AM malcolmryan
(comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first

Petey on the forum provided the answer:

Open your Xcode project Select Unity-iPhone in targets (Double click so it opens the info) find "Generate Debug Symbols" and check it on. (Just Search for it in the search field)

This worked for me, but I still don't understand why it is necessary.

more ▼

answered Jul 15 '10 at 01:35 AM

malcolmryan gravatar image

malcolmryan
101 3 5 13

The build and archive operation needs the debug symbols to generate the .dSYM file. Without the debug information you would not be able to symbolize a crash report as the dSYM file would not have been able to be created. Most of the time you will select the 'strip debug symbols on copy'. This will remove all the debug symbols in the distribution package.

Aug 22 '10 at 03:54 AM user-2467

Thanks! This helped me perfectly with this exact same issue.

Sep 15 '10 at 10:50 PM ChiefSpruce
(comments are locked)
10|3000 characters needed characters left

Petey and malcolmryan - thank you, Thank you, THANK YOU! Worked perfectly for me, after hours of frustration spent before finding your solution.

more ▼

answered Aug 07 '10 at 09:12 AM

TroyTegeder gravatar image

TroyTegeder
1

(comments are locked)
10|3000 characters needed characters left

Please note that there was an issue on Apple's side yesterday (January 16). It seems like some of the certificates that were created that day needed to be recreated. That's what we did today, and everything is working fine again now. Also see the corresponding page on Stackoverflow.

more ▼

answered Jan 17 '12 at 09:35 AM

bernardfrancois gravatar image

bernardfrancois
156 1 3

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1999
x346
x121

asked: Jul 14 '10 at 12:41 AM

Seen: 10727 times

Last Updated: Jan 17 '12 at 09:35 AM