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
Why does -pbxcp add bytes to copied files?
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Why does -pbxcp add bytes to copied files?
Subject
:
Why does -pbxcp add bytes to copied files?
From: Jerry Krinock <
email@hidden
>
Date: Mon, 31 Mar 2008 11:18:03 -0700
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". :)
Thanks
Jerry
[1] Subject: Wrong Frameworks Build Configuration Copied to App Pkg
[2] /Developer/Library/PrivateFrameworks/DevToolsCore.framework/ Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -resolve- src-symlinks <source> <destination>
_______________________________________________
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
Follow-Ups
:
Re: Why does -pbxcp add bytes to copied files?
From:
Philip Aker <email@hidden>
Prev by Date:
Re: Xcode 3.1 (beta): 'Save' & 'Save As' menu items grayed out
Next by Date:
Strange display issue
Previous by thread:
Re: Xcode 3.1 (beta): 'Save' & 'Save As' menu items grayed out
Next by thread:
Re: Why does -pbxcp add bytes to copied files?
Index(es):
Date
Thread