• 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
loading agent with launchd gets Bus Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

loading agent with launchd gets Bus Error


  • Subject: loading agent with launchd gets Bus Error
  • From: Rick Mann <email@hidden>
  • Date: Fri, 6 Mar 2009 15:04:12 -0800

If I let launchd launch my user agent, (via .plist file in ~/Library/ LaunchAgents), I get a Bus Error, even if all I do is call NSLog() from main and then return.

Also, load or load -w result in "nothing to load" from launchctl.

If I launch my agent from the command line or from Xcode, it seems to run fine. It has LSUIElement set to true in it's Info.plist.

Any ideas what I'm doing wrong? TIA!

My plist looks like this (after launchctl unformatted it):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd ">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>com.test.test</string>
<key>LimitLoadToSessionType</key>
<string>Aqua</string>
<key>Program</key>
<string>/Users/rmann/Desktop/TestAgents/build/Debug/TestAgents.app/ Contents/Resources/Agent.app/Contents/MacOS/Agent</string>
</dict>
</plist>


--
Rick

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: How to change the Installer.app path of files in a XCode project
  • Next by Date: When to release an NSThread instance
  • Previous by thread: Re: window wont close with command-w
  • Next by thread: When to release an NSThread instance
  • Index(es):
    • Date
    • Thread