包含一个主可执行文件和一个助手应用程序的应用程序包 [英] App bundle with one main executable and one helper app

查看:135
本文介绍了包含一个主可执行文件和一个助手应用程序的应用程序包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了一个应用程序,它使用外部问道(我为gui工具编写的一个小应用程序)cmd行工具访问ssh。一切工作正常到目前为止在开发模式。但是,当我想归档/捆绑应用程序时,它创建了一个带有2个可执行文件的zip文件。



google搜索之后,我发现我必须把请在内容/ macos中传递工具。好..但如何?我不知道如何做与XCode4和谷歌没有显示我一个解决方案,链接提示或其他。也许你们中的任何人都知道教程/解决方案?



问候,Alex

解决方案>

我有一个非常喜欢这个应用程序(一个主要的GUI应用程序和一个帮助应用程序)。



要获取嵌入到主应用程序的帮助应用程序,您的项目的构建阶段选项卡,您可以添加复制文件构建阶段。



要进入构建阶段,请单击文件中的主项目检查器(通常是最顶层的),然后在左侧的下拉列表中看到一个带有Project和Targets的窗口。选择您要添加帮助程序应用程序的目标,您可以在其中添加复制文件构建阶段。



如果您无法找到它,知道,我可以尝试准备一个截图(不能这只是因为我自己的项目是在NDA下)。


I wrote an app which uses an external ask pass(a small app I wrote for the gui tool) cmd line tool for accessing ssh. Everything works fine so far in development mode. But when I want to archive/bundle the app it creates me a zip-file with 2 executables.

After googling, I've found out that I have to put the ask pass tool in content/macos . Well.. but how ? I don't know how to do that with XCode4 and google didn't show me a solution, link tip or whatever. Maybe anyone of you knows a tutorial / the solution ?

Regards, Alex

解决方案

I have an app quite like this (a main GUI app and a helper app).

To get the helper app embedded into the main app, go to the "Build Phases" tab of your project and you can add a "Copy Files" build phase.

To get to Build Phases, click on the main project in the File Inspector (it's usually the top-most thing) and then you'll see a window with "Project" and "Targets" in a drop down table on the left side. Choose the target you want to add your helper app to, and that's where you can add the "Copy Files" build phase.

If you have trouble finding it, let me know and I can attempt to prepare a screenshot (can't do it just yet cause my own project is under NDA).

这篇关于包含一个主可执行文件和一个助手应用程序的应用程序包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆