Re: loading agent with launchd gets Bus Error
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Mar 9, 2009, at 14:23:06, Damien Sorresso wrote: I can't find a ZeroLink setting (of any kind) in my projects. Any ideas what I'm doing wrong? TIA! My plist looks like this (after launchctl unformatted it): -- Damien Sorresso BSD Engineering Apple Inc. -- Rick _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On Mar 9, 2009, at 2:12 PM, Rick Mann wrote: 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. I notice that you're loading a debug build of your program. You don't by chance have ZeroLink enabled or something like that, do you? Also, load or load -w result in "nothing to load" from launchctl. Try `launchctl load -S Aqua <PathToPlist>`. That worked! It loaded and launched just fine. I'm confused, since I specify Aqua in the .plist. 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. <?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> This email sent to site_archiver@lists.apple.com
participants (1)
-
Rick Mann