Wednesday, 15 January 2014

objective c - Include exec files in osx app bundle -



objective c - Include exec files in osx app bundle -

ive looked around bit , cant find reply hoping for, new osx dev forgive me if basic question.

using nstask open exec file while osx running stuff, have set launchpath self.execfile.launchpath = @"/usr/local/bin/execfile";. fine when i'm running on mac, however, distribute app. looking way to save execfile in, gather far googling, apps bundle , phone call there, way can set launchpath in code , work on computer. far ive seen talk on how access app bundle don't know how save file there in first place.

you must create re-create files build phase application target , add together exec files re-create files build phase. select project project navigator open project editor. select application target left side of project editor. click build phases button @ top of editor. take editor > add together build phase > add together re-create files build phase add together re-create files build phase.

after creating re-create files build phase, click disclosure triangle next it. there can add together files build phase , take location in app bundle re-create file. when build project, xcode copies files in re-create files build phase app bundle in location specified.

objective-c osx xcode6 resourcebundle nsbundle

No comments:

Post a Comment