• 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: Why does -pbxcp add bytes to copied files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why does -pbxcp add bytes to copied files?


  • Subject: Re: Why does -pbxcp add bytes to copied files?
  • From: Philip Aker <email@hidden>
  • Date: Mon, 31 Mar 2008 12:23:10 -0700

On 08-03-31, at 11:18, Jerry Krinock wrote:

In another thread a couple hours ago [1], I explained why it is better to copy private frameworks to Contents/Frameworks in a Run Script Build Phase instead of a Copy Files Build Phase.

The script I proposed used unix 'cp' command, but I got to wondering why 'pbxcp' adds a few extra bytes to when copying executables. For example, when I copy a framework using 'cp -Rfp', the executable in the copy has exactly the same number of bytes as the executable in the original. However, if I invoke pbxcp to do the copy as Xcode does [2], copying an executable of 16888 results in a copied executable with 17132 bytes from an original of 16888 bytes, and in another case 37368 bytes becomes 37616.

In my simple demo, the app produced by either cp or pbxcp works equally well, and I'm using pbxcp for now. But I would feel better if someone could tell me what those extra bytes might be. The only documentation I can find on pbxcp is from a 2002 Release Note when it was introduced in Xcode, and all it says is that pbxcp is "more efficient". :)

Resource fork added?


Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@




_______________________________________________ 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: 
 >Why does -pbxcp add bytes to copied files? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Why does -pbxcp add bytes to copied files?
  • Next by Date: Remote Debugging with Xcode 2.5 & Leopard
  • Previous by thread: Why does -pbxcp add bytes to copied files?
  • Next by thread: Why does -pbxcp add bytes to copied files?
  • Index(es):
    • Date
    • Thread