objective c - Run a binary from .app's package contents -
can have binary files .sh part of .app in "package contents".
i have .app has 2 buttons start/stop kicks off process start server. keep clean, store start/stop shell scripts within .app.
can execute shell scripts .app?
on mac, yes: use nstask class’s +launchedtaskwithlaunchpath:arguments:
method (for example), after retrieving path binaries 1 of methods on nsbundle’s—-resourcepath
, -bundlepath
, -pathforresource:oftype:
, or whatever.
on ios... no. nstask isn’t available.
Comments
Post a Comment