Reputation: 1037
my app Cocoa app for OS X was rejected by Apple. This is what they said:
2.23 The app spawns a process that continues running after the user quits the app, without first obtaining user consent.
The spawned process is /Applications/MyApp.app/Contents/MacOS/MyApp -psn_0_10148269.
(I changed the app name)
I have no idea how to find out what this strange process is. What's the best approach to find that out? Maybe using Instruments ? Is there a way to figure out what psn_0_10148269 means?
Some parts of my app use (many) NSTask objects. Could that process be a not terminated NSTask object?
Upvotes: 1
Views: 527
Reputation: 27984
That is a pretty weird message. The process is just your app itself. OS X passes in the -psn
argument when it launches your app -- it's an implementation detail, that normally you never see.
It could definitely be something relating to an NSTask. Possibly you are running a task but never reaping its exit status; then your app becomes a zombie process. Double-check your NSTask usage, and make sure you aren't leaking any of them.
Also, it never hurts to ask the Apple reviewer for a clarification.
Upvotes: 2