如何部署 Mac 命令行工具 [英] How to deploy a Mac Command Line Tool

查看:76
本文介绍了如何部署 Mac 命令行工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 Xcode OS X 命令行工具项目模板创建了一个控制台应用程序.

I've created a console application using the Xcode OS X Command Line Tool project template.

当一切都说完后,实际的Release"二进制文件放在我的机器上的什么位置?搜索 SO 后,我找到了可以找到调试"二进制文件的位置:

When everything is said and done, where are the actual "Release" binaries placed on my machine? After searching SO, I found out where I could find the "Debug" binaries:

~/Library/Developer/Xcode/DerivedData/Project/Build/Products/Debug

~/Library/Developer/Xcode/DerivedData/Project/Build/Products/Debug

在哪里可以找到发布"二进制文件?或者在 Xcode 中是否需要额外的设置来输出这些二进制文件,以便我可以分发控制台应用程序?

Where can I find the "Release" binaries? Or is there additional setup that is needed in Xcode to output these binaries so that I can distribute console application?

推荐答案

方案设置决定了是构建 Debug 版本还是 Release 版本.默认方案构建调试.如果您在 Product 菜单中选择 Archive 选项,Xcode 将默认构建 Release 版本.作为存档过程的一部分,您可以为要放置的构建产品(可执行文件)选择一个位置.

The scheme settings determine whether the Debug or Release version is built. The default scheme builds Debug. If you choose the Archive option in the Product menu Xcode will build the Release version by default. As part of the archive process you select a location for the build product (the executable) to be placed.

通过编辑默认方案,您还可以指导普通构建操作来创建发布版本.您也可以添加自己的自定义方案.

By editing the default scheme you can also direct the ordinary build action to create the Release version. You may also add your own custom schemes.

这篇关于如何部署 Mac 命令行工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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