How to deploy a Mac Command Line Tool

强颜欢笑 提交于 2020-01-02 01:17:26

问题


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

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

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?


回答1:


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.



来源:https://stackoverflow.com/questions/12772187/how-to-deploy-a-mac-command-line-tool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!