• 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: cp from Xcode Shell script target
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cp from Xcode Shell script target


  • Subject: Re: cp from Xcode Shell script target
  • From: Greg Guerin <email@hidden>
  • Date: Fri, 5 Mar 2010 13:02:00 -0700

JT Burgess wrote:

Looks like the copy is actually running just fine - but I'm still
getting strange behavior.
The first time I double  click the app to run, it give me the "wrong
architecture" message.
I click OK, and try to run the app again and it succeeds...


Where in your build process is the cp?

It could be that Finder or LaunchServices reads the contents of the new app, in the middle of the process of building it. Your cp comes later and changes things, and LS isn't told again to read the contents, so its database is stale.

One way I've remedied this is to touch the top-level dir (i.e. the .app) after making changes inside the .app. This causes Finder or LS to see a different mod-date on the top-level app, and trigger an LS update. The glitch comes because Finder won't look *inside* an app-bundle for newer mod-dates, so the fix essentially propagates the internal mod-date out to a place where Finder (or LS) will see it.

That's my guess as to what's happening, but I could be wrong.

  -- GG


_______________________________________________ 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: cp from Xcode Shell script target
      • From: JT Burgess <email@hidden>
  • Prev by Date: Bundles and dylib lookup
  • Next by Date: reading Text from Pages Doc
  • Previous by thread: Re: cp from Xcode Shell script target
  • Next by thread: Re: cp from Xcode Shell script target
  • Index(es):
    • Date
    • Thread