• 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: Xcode 3.1 builds fails for OS X Cocoa apps (copystrings)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode 3.1 builds fails for OS X Cocoa apps (copystrings)


  • Subject: Re: Xcode 3.1 builds fails for OS X Cocoa apps (copystrings)
  • From: Chris Espinosa <email@hidden>
  • Date: Mon, 21 Jul 2008 21:31:51 -0700


On Jul 21, 2008, at 9:04 PM, Jim Fridlund wrote:

Hey all. fyi, Ok, I'm one step closer to solving my Xcode build/copystrings mystery.

If I invoke Xcode from the terminal as such:

$  /Developer/Applications/Xcode.app/Contents/MacOS/Xcode

I can definitely build without copystrings errors. However, if I start Xcode from the Finder by clicking on the Xcode icon in /Developers/Applications folder or clicking from my dock, then copystrings fail when I do a build.

When I invoke Xcode from the shell, I'm running in user "jim" context. When I click start using Finder, am I running in user "jim" context?

In any case, if I invoke Xcode from the shell instead of starting it from Finder, then Xcode works the way it should!  Now I can enjoy Xcode just like the rest. :) This is definitely one step better than my previous work around which was cut&paste the copystrings build output and invoke manually from shell.

I'm just curious though why Xcode would have different behavior.

When you invoke Xcode from a login shell, you inherit that login shell's environment variables that you set in the .rc file for that shell in your home directory.

When you launch an app with Launch Services (e.g. Dock or Finder), you don't use a shell, therefore no shell commands are executed, therefore no environment veriables are set.

If you need to have environment variables set in order for a Launch Services-launched app to work correctly, you need to set the .MacOSX/environment.plist to contain the correct environment variables settings, like you did with your shell .rc file.

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

  • Follow-Ups:
    • Re: Xcode 3.1 builds fails for OS X Cocoa apps (copystrings)
      • From: Bill Bumgarner <email@hidden>
    • Re: Xcode 3.1 builds fails for OS X Cocoa apps (copystrings)
      • From: Jim Fridlund <email@hidden>
References: 
 >Fwd: Xcode 3.1 builds fails for OS X Cocoa apps (copystrings) (From: Jim Fridlund <email@hidden>)
 >Re: Xcode 3.1 builds fails for OS X Cocoa apps (copystrings) (From: Jim Fridlund <email@hidden>)

  • Prev by Date: Re: Xcode 3.1 builds fails for OS X Cocoa apps (copystrings)
  • Next by Date: Re: Xcode 3.1 builds fails for OS X Cocoa apps (copystrings)
  • Previous by thread: Re: Xcode 3.1 builds fails for OS X Cocoa apps (copystrings)
  • Next by thread: Re: Xcode 3.1 builds fails for OS X Cocoa apps (copystrings)
  • Index(es):
    • Date
    • Thread