Xcode builds document instead of executable

Hi there, I have made an application using c++ and XCode, when I compile and run within XCode it opens in it's own window and runs perfectly, however when I attempt to open the executable from finder, the product is not an executable, but a document and I can't open it.


normally compiling generates an executable so I am unsure why this has started happening now.


please advise.


Thanks

Posted on Apr 14, 2020 7:15 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 14, 2020 8:01 AM

Ok I worked out my issue. My executable was named "myProgram_1.0"


using the period in the executable name was confusing the executable extension changing it to an underscore solved my issue.

Similar questions

1 reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Xcode builds document instead of executable

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.