Re: Is there still no way to just compile a single file?
Re: Is there still no way to just compile a single file?
- Subject: Re: Is there still no way to just compile a single file?
- From: Gerd Knops <email@hidden>
- Date: Sun, 14 Jul 2013 08:51:42 -0500
On Jul 13, 2013, at 8:24 PM, Jeffrey Walton <email@hidden> wrote:
> On Sat, Jul 13, 2013 at 9:02 PM, Jens Alfke <email@hidden> wrote:
>>
>> On Jul 13, 2013, at 5:42 PM, Gerd Knops <email@hidden> wrote:
>>
>> Actually it'd be really useful for command line use, for those of us
>> preferring a different source code editor.
>>
>>
>> Um, ‘cc’? AKA ‘clang’?
>>
>> It’s been a while since I did this, but it’s something like “clang
>> --framework Foundation foo.m -o foo && ./foo”.
> You can see the command line being used by Xcode to build a project in
> the Log Navigator, and then expand one of the "compile XXX.m"
> disclosures. Below is a sample form a test project.
None of this is helping. Given a project, target and source file there should be a way to build just that source file in the context of the project (include paths, framework etc). Something along the lines of
xcodebuild -project MyProject -target MyTarget -files MySourceFile1.m
Gerd
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden