Re: Adding helper target to macOS app?
Re: Adding helper target to macOS app?
- Subject: Re: Adding helper target to macOS app?
- From: Jean-Daniel via Cocoa-dev <email@hidden>
- Date: Sat, 4 Apr 2020 21:26:09 +0200
> Le 3 avr. 2020 à 15:44, João Varela via Cocoa-dev <email@hidden>
> a écrit :
>
> Hello, Laurent
>
> As far as I know, the documentation is still valid.
>
> I would start reading this:
>
> https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/DesigningDaemons.html#//apple_ref/doc/uid/10000172i-SW4-BBCBHBFB
>
> <https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/DesigningDaemons.html#//apple_ref/doc/uid/10000172i-SW4-BBCBHBFB>
>
> and this:
>
> https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/DesigningDaemons.html#//apple_ref/doc/uid/10000172i-SW4-BBCBHBFB
>
> <https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/DesigningDaemons.html#//apple_ref/doc/uid/10000172i-SW4-BBCBHBFB>
>
> and this:
>
> https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/Introduction/Introduction.html#//apple_ref/doc/uid/10000123i-CH1-SW1
>
> <https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/Introduction/Introduction.html#//apple_ref/doc/uid/10000123i-CH1-SW1>
>
>
> macOS has a plethora of options, and that depends a lot on what you want to
> achieve and the degree of security you need / you want to impose on the main
> app and its helpers.
>
> Personally, I have an app bundle that look like this:
>
> MainApp.app/
> Contents/
> info.plist
> MacOS/
> MainExecutable
> Helpers/
> Helper1.app
> Helper2.app
> Library/
> LoginItems/
> LoginItem.app
> Resources/
> … all resources here, including help and icon files
>
> I create different targets for the main app and for each helper and login
> item and then use scripts to build the whole bundle
Out of curiosity, why are you using custom scripts and not simply some « Copy
File » Build step to assemble the bundle ?
_______________________________________________
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