Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.
Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.
- Subject: Re: Non-sandboxed Cocoa app accessing current user preferences using NSTask fails when launched outside Xcode.
- From: Todd Heberlein <email@hidden>
- Date: Tue, 23 Jul 2013 10:11:24 -0700
> I've a non-sandboxed Cocoa app that launches sqlite command using NSTask to read a preferences file in ~/Library/Preferences. The app works fine when launched using Xcode Build-and-Run, but when the app (after using Xcode Archive and Distribute) is launched independent of Xcode, the app launches but doesn't execute the sqlite command.
Have you looked at the Console messages?
I often find error messages in there that explain an apparent silent failure.
Todd
_______________________________________________
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