• 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
Does "LSEnvironment" work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Does "LSEnvironment" work


  • Subject: Does "LSEnvironment" work
  • From: "Dieter Oberkofler" <email@hidden>
  • Date: Wed, 25 May 2005 20:29:51 +0200

I'm having problem to set environment variables in the "Info.plist" configuration file of my C++ application build with XCode. I have stored the attached "Info.plist" file in the "Contents" folder of my application bundle but the application does not seem to have find variable "TEST_ENV_KEY" when using the stdc function getenv. Other environment variables that are set in the ".MacOSX/environment.plist" configuration file of the user can be retrieved properly by my application.
What am i missing?
 
-Dieter
 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
 <key>CFBundleDevelopmentRegion</key>
 <string>English</string>
 <key>CFBundleExecutable</key>
 <string>XVTSampleApplication</string>
 <key>CFBundleIdentifier</key>
 <string>com.apple.myCarbonApp</string>
 <key>CFBundleInfoDictionaryVersion</key>
 <string>6.0</string>
 <key>CFBundlePackageType</key>
 <string>APPL</string>
 <key>CFBundleSignature</key>
 <string>????</string>
 <key>CFBundleVersion</key>
 <string>1.0</string>
 <key>LSEnvironment</key>
 <dict>
  <key>TEST_ENV_KEY</key>
  <string>TEST_ENV_VALUE</string>
 </dict>
</dict>
</plist>
 _______________________________________________
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

  • Prev by Date: Re: Rudimentary MPW simulation with Xcode script
  • Next by Date: Best way to process each existing localization of strings file?
  • Previous by thread: Re: NSInvalidArgumentException again
  • Next by thread: Best way to process each existing localization of strings file?
  • Index(es):
    • Date
    • Thread