app store + helper program

Discussion in 'Mac Programming' started by abcd1, Dec 28, 2011.

  1. macrumors newbie

    Joined:
    Dec 28, 2011
    #1
    Hello, i have application, that i want to submit to app store. This application uses another application as child-process. Where should i put my second application in the bandle?
    http://developer.apple.com/library/mac/#releasenotes/General/SubmittingToMacAppStore/_index.html
    I read here about helper application. But is it my case? Should it be full application bundle, stored inside the main application bundle in the Contents/Library/LoginItems directory? Or it can be just executable file in the /Resourse/ or /MacOS/ directory of my main bundle?
     
  2. macrumors G4

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #2
    Normally, embedded helper applications go in Contents/Resources, regardless of whether they are raw executables or bundles.
     
  3. macrumors G5

    gnasher729

    Joined:
    Nov 25, 2005
    #3
    You are mentioning "LoginItems". If you want to add to the user's LoginItems directory, forget it.
     
  4. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #4
    AFAIK, you can only use the SMLoginItemSetEnabled() API to install a login item if your app is going to be sandboxed, and that function requires it to be in the Contents/Library/LoginItems folder in your .app.

    See /System/Library/Frameworks/ServiceManagement.framework/Versions/A/Headers/SMLoginItem.h

    Code signing + MAS submission gets fussy if you do this, so if you've got a non-login item app it should go outside of Contents/Resources - I've been using Contents/Helpers.
     
  5. thread starter macrumors newbie

    Joined:
    Dec 28, 2011
    #5
    wrldwzrd89, gnasher729, kainjow, thanks for your answers, i'll put my helpers to /contents/helpers
     
  6. abcd1, Jan 9, 2012
    Last edited: Jan 9, 2012

    thread starter macrumors newbie

    Joined:
    Dec 28, 2011
    #6
    I'm sorry, but i'm here again...
    I put helper (it is bundle) to /contents/helpers.
    and productbuild says to me:
    "No package identifier specified and not exactly one component to derive it from"
    If i remove helpers, productbuild makes pkg succesfully.

    productbuild --component "/users/me/myapp.app" /Applications --sign "3rd Party Mac Developer Installer" "/users/me/myapp.pkg"
     

Share This Page