|Mar 24, 2011, 06:18 PM||#1|
XCode 4 Command-line application build location?
In Xcode 3, if you build a command-line application in C++, it compiles to a folder in the project folder and you can run it. In Xcode 4, I have not been able to figure out where it builds to. I searched my Mac, dug around in all the settings, but there is no binary. I can run the application, but no binary to be found.
iPhone and Macintosh Development Resource (Check out our open source iPhone games and BASIC compiler)
|Mar 24, 2011, 07:15 PM||#2|
Check ~/Library/Developer/Xcode/DerivedData. Or set the build location in the preferences under "Locations" (hope it works, haven't really checked it out myself). I don't quite understand why the product isn't placed in the projects folder by default (while I sort of understand the use of the ~/Library folder).
|Mar 24, 2011, 09:00 PM||#3|
Xcode 4 has a different build output location than Xcode 3.
Did you read the Xcode 4 Transition Guide? The Xcode 4 User Guide?
If not, you should.
Xcode 4 Transition Guide:
Xcode 4 User Guide:
Xcode Quick Start Guide:
If you don't have a compelling requirement that can only be fulfilled by Xcode 4, you should probably just use Xcode 3 for real work, and use Xcode 4 only to learn how it works.
|Mar 24, 2011, 11:18 PM||#4|
You can get the XCode 3 build behaviour by changing Build Location under Locations in Preferences from the default "Place build products in derived data location" to "Place build products in locations specified by targets".
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Passing a text file into Xcode instead of using the command line (C language)||hollabit||Mac Programming||19||Mar 31, 2014 11:45 AM|
|General: iOS7 command line... Equivalent of "say" command?||RobertoG||Jailbreaks and iOS Hacks||0||Jan 19, 2014 05:05 PM|
|Command line tools & Xcode 5 & Mavericks||ka-spot||OS X Mavericks (10.9)||1||Oct 24, 2013 09:35 AM|
|Unable to download the Command Line Tools (Xcode 5 DP3)||cili0||Mac Programming||4||Jul 25, 2013 01:01 PM|
|Need Command-line help||EricBrian||Community Discussion||1||Feb 20, 2013 08:40 PM|
All times are GMT -5. The time now is 05:47 AM.