mac programming question

Discussion in 'Mac Programming' started by perlsyntax, Jun 14, 2014.

  1. perlsyntax macrumors 6502

    Joined:
    Jan 10, 2014
    #1
    If i sign up for the mac os x programming for apple can i make command line tools for my projects and put in the apple store?
     
  2. perlsyntax thread starter macrumors 6502

    Joined:
    Jan 10, 2014
  3. ArtOfWarfare, Jun 15, 2014
    Last edited: Jun 15, 2014

    ArtOfWarfare macrumors G3

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #3
    No, I'm fairly certain only apps are allowed on the Mac App Store.

    Read through the Mac App Store rules and I feel like they might cite this one as a reason for rejection:

    Here's the rules if you want to read through them all:
    https://developer.apple.com/appstore/mac/resources/approval/guidelines.html
     
  4. hiddenmarkov, Jun 15, 2014
    Last edited: Jun 15, 2014

    hiddenmarkov macrumors 6502a

    Joined:
    Mar 12, 2014
    Location:
    Japan
    #4
    command line is not allowed in the store as far as I know.


    Working example I know would be BBedit, the text editor. If you get from vendor you get the BB edit app and its command line tools in one go.

    If you get from app store you only get the bbedit app. To get the command line tools you have to see the bbedit site for a second downloard from them. they reason they give for this is basically app store does not allow CLI app posting.



    If going down the route of CLI app making I'd highly advise you in release notes or on your site (if running one) give instructions on how to turn off guardian. I know how to turn it off to avoid that lovely pop up saying it will not install as its not a recognized apple developer app. Some other users of your app may not however. Sure they can google it, but its a nice touch if the devs take a few moment to write this step I find.
     
  5. Madd the Sane macrumors 6502a

    Madd the Sane

    Joined:
    Nov 8, 2010
    Location:
    Utah
    #5
    IIRC, you can sign command-line tools with your programmer key.
     
  6. perlsyntax thread starter macrumors 6502

    Joined:
    Jan 10, 2014
    #6
    What do you mean?
     
  7. ArtOfWarfare macrumors G3

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #7
    He's just talking about signing your program so that it isn't blocked from running by GateKeeper. It's not related to your question about putting command line tools on the Mac App Store.
     
  8. perlsyntax thread starter macrumors 6502

    Joined:
    Jan 10, 2014
    #8
    Sorry if i just asking a question.
     
  9. nthState macrumors newbie

    nthState

    Joined:
    Mar 20, 2014
    #9
    Command Line

    What you could do is have a binary that contains the command line and GUI code.
    Then in your main.m simply check if the app was launched with particular flags, if it was, branch your code to run the command line version.

    Something like:

    Code:
        
        //main.m
        NSArray *args = [[NSProcessInfo processInfo] arguments];
    
        BOOL inGUIMode = TRUE;
        inGUIMode = ![args containsObject: @"--myCommand"];
        
        if (inGUIMode == FALSE)
        {
            CommandLineRunner *runner = [[CommandLineRunner alloc] init];
            [runner runCommandLine];
        } else {
            return NSApplicationMain(argc, argv);
        }
     
  10. Senor Cuete macrumors regular

    Joined:
    Nov 9, 2011
    #10
    I would be quite easy to add a rudimentary GUI using Xcode / Interface Builder. For example you could develop a single window Mac app.
     
  11. perlsyntax thread starter macrumors 6502

    Joined:
    Jan 10, 2014
    #11
    My other question which has more users on it IOS or mac?


    thank for the tips:)
     
  12. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #12
  13. robvas macrumors 68030

    Joined:
    Mar 29, 2009
    Location:
    USA
    #13
    If you're going to do a CLI app why not just put it in Homebrew?
     
  14. hiddenmarkov macrumors 6502a

    Joined:
    Mar 12, 2014
    Location:
    Japan
    #14

    this would be a good place to put it. Since I came across I am liking it. Not that I am scared of building off of source, homebrew just adds a few bene's besides the compiling being taken care of.


    Github might be another good avenue to host as well if not on homebrew. There are others ofc but github seems to be a front runner in this arena.
     

Share This Page