• 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: Copy files phase interferes with code signature?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Copy files phase interferes with code signature?


  • Subject: Re: Copy files phase interferes with code signature?
  • From: John Brisbin <email@hidden>
  • Date: Sun, 19 Oct 2008 11:02:17 -0700

I too have had the same kind of problems with copy files.
These have appeared in two areas:
1. Where header files moved with copy files to shared location have their dates munged forcing full rebuilds each time.
2. Where files that I have signed using my own pre-Leopard code have been corrupted (enough to not match the signature).

I wrote it off as a bug/misfeature and simply replaced any critical 'copy files' phases with 'script' phases that move the same files using ditto (which preserves dates and other attributes much better than cp or whatever copy files is using).

Whether a bug or feature, this has been the behavior of copy files since at least Xcode 2.4.

John Brisbin

infinite labs wrote:
On Sat, Oct 18, 2008 at 2:19 PM, Keith Duncan <email@hidden> wrote:
  
it modifies it in a way that removes the signature.
      
Are you sure it isn't simply 'breaking' the signature from the last time the
product was built? Signing is the last thing that Xcode does and it takes
place after the build phases are complete.

Keith
    

I am not using CODE_SIGN_* as I want to sign dylibs and Cocoa bundles
too and xcodebuild simply outputs "code signing not enabled for
product type <type>" (not verbatim) for these targets.

I'm using a custom shell script phase which basically boils down to:

codesign -s "$MY_BUILD_SETTING_WITH_CS_IDENTITY" -vvvvv -f
"$BUILT_PRODUCTS_DIR"/"$FULL_PRODUCT_NAME"

It's the last build phase in the target and I can verify pre-copy
files are correctly signed.

 - ∞
  

_______________________________________________ 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

 _______________________________________________
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: 
 >Copy files phase interferes with code signature? (From: "infinite labs" <email@hidden>)
 >Re: Copy files phase interferes with code signature? (From: Keith Duncan <email@hidden>)
 >Re: Copy files phase interferes with code signature? (From: "infinite labs" <email@hidden>)

  • Prev by Date: Re: Source code for Sen testing kit, or, help me
  • Next by Date: Re: Copy files phase interferes with code signature?
  • Previous by thread: Re: Copy files phase interferes with code signature?
  • Next by thread: Re: Copy files phase interferes with code signature?
  • Index(es):
    • Date
    • Thread