简体   繁体   中英

Compile C++ code to standalone application .app

How can I compile c++ code to .app? I've created console app in XCode, after compilation created xcodeproj file. But I need .app extention.

Additional description: I have Delphi for OS X, and C++ application. These apps are connected via socket. So all is going good. When i was testing I had opened c++ app in XCode and Run it. But now I need c++ app would be opened automatically by delphi. So, I had succes to open xcodeproj file, but it opens terminal window. I've searched for info in inthernet and found that application must not be created as console app. Console apps can't be compiled to .app extention by XCode(if it can tell me the way please).

So, please tell me how resolve.

UPDATE: Maybe i must recreate project as GUI project. So how rebuild to gui proj from c++ code

In Xcode, try the Archiving window. This should let you save your compiled application as .app on OS X.

More Info: https://developer.apple.com/library/content/technotes/tn2215/_index.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM