• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: build phase "copy files" not working with PEF file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: build phase "copy files" not working with PEF file


  • Subject: Re: build phase "copy files" not working with PEF file
  • From: Chris Espinosa <email@hidden>
  • Date: Tue, 29 Aug 2006 08:22:16 -0700


On Aug 29, 2006, at 4:39 AM, Marc Monguio wrote:

I need to launch an executable from the application I'm developing but I'm having problems with XCode copy phase.

When I add a PEF executable file into the project and add it to the result bundle with a "copy phase" the executable looses its icon, around 200Kb in weight, the version string shown in getinfo panel, and the capacity to launch with double click or using terminal (I get this: "cannot execute binary file")
According to the "file" command the original executable has  a "header for PowerPC PEF executable", but so does the executable that is copied to the bundle !
Once the build process is over if I change the PEF executable for the original one everything goes smooth. This is telling me that XCode is doing something else besides just copy the file to the destination folder (in this case is the "executables" directory). I've tried to set up the file type of the file inside XCode to "compiled", "compiled.cfm", "compiled.rcx", "compiled.mach-o", "file" without luck.

Any ideas on what's wrong?

By the way, the executable file that XCode fails to copy correctly is a Macromedia Flash projector compiled for Mac. If I try the same with mach-o unix command tool it works flawless.

All indications are that the Copy Resources build phase is stripping the resource fork and HFS metadata from your file, which is its default behavior.  Set the "Preserve HFS Data" (COPYING_PRESERVES_HFS_DATA) build setting to YES to copy these.

Chris

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >build phase "copy files" not working with PEF file (From: Marc Monguio <email@hidden>)

  • Prev by Date: Re: Debugger thread dump confusion
  • Next by Date: Re: Cmath and math.h Changes in Xcode 2.4
  • Previous by thread: build phase "copy files" not working with PEF file
  • Next by thread: Re: Cmath and math.h Changes in Xcode 2.4 (Mike Jackson)
  • Index(es):
    • Date
    • Thread