开发者

How do I build a C++ program as a .app program?

开发者 https://www.devze.com 2023-02-17 10:09 出处:网络
I am trying to build a c++ program I wrote as a stand alone .app that I can distribute. I didn\'t notice till now that it is just building a unix executable.

I am trying to build a c++ program I wrote as a stand alone .app that I can distribute. I didn't notice till now that it is just building a unix executable.

I am using Xcode 4.

Also if my program has dependencies on libraries can I package them with the app or do I have to get people to install the开发者_开发知识库 libraries?

Thanks.


I came across this post when trying to make an .app file of my c++ program in Xcode. So these steps might help someone else out.

  1. Click Product->Archive in the top menu.
  2. Then select the "Distribute..." button (under "Validate...").
  3. Select "Export as" and "Application" in the drop down box.
  4. Click "Next" and save the file where you want.
0

精彩评论

暂无评论...
验证码 换一张
取 消