error when archiving the project - Bad file descriptor

Asked by Elias Ma

Hi there,

Just integrated Sparkle into my cocoa project today, and everything seems to be fine until I am trying to archive.

During the archiving, I got an error which said:
error: strip /Users/macbookpro/Desktop/LectureApp/Sparkle.framework/Versions/A/Resources/relaunch: The operation couldn’t be completed. Bad file descriptor

Googled a lot but cannot find anything useful to me...

Any ideas ?

Question information

Language:
English Edit question
Status:
Solved
For:
Sparkle Edit question
Assignee:
No assignee Edit question
Solved by:
Andy Matuschak
Solved:
Last query:
Last reply:
Revision history for this message
Andy Matuschak (andymatuschak) said :
#1

Does your Sparkle.framework have a relaunch binary in its Resources directory? We've seen that missing sometimes, and I'm not sure why. A bad distribution or bad unarchiver somewhere?

Revision history for this message
Elias Ma (allenbryan11) said :
#2

Hi Andy,

Thanks for your reply.
Yes, the relaunch binary is in the Sparkle.framework, right under the path is Sparkle.framework/Versions/A/Resources/
I downloaded the framework from its official web site, tried version 1.5b6 and 1.5b6.1, both have the same problem.

Revision history for this message
Andy Matuschak (andymatuschak) said :
#3

Hm. I have no idea why this would be the case. Strange file permissions, perhaps? What happens you run strip from the command line?

Revision history for this message
Elias Ma (allenbryan11) said :
#4

Hmm, it says that "-bash: strip: command not found". Is it because the lost some packages?

Revision history for this message
Best Andy Matuschak (andymatuschak) said :
#5

That would suggest to me that your installation of Xcode is corrupt. strip is one of the basic toolchain binaries included with Xcode.

Revision history for this message
Elias Ma (allenbryan11) said :
#6

Yeah! It works! Thanks so much Andy :D

Revision history for this message
Rosijanni (jagaller) said :
#7

Okay guys:

This problem could be solved by running the following code in a terminal:
sudo cp -r /Developer/usr/bin/strip /usr/bin/strip

The error occours because of the missing strip tool in the system.