• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is there still no way to just compile a single file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Jeffrey Walton <email@hidden>
  • Date: Sat, 13 Jul 2013 21:24:55 -0400

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.

Jeff

CompileC /Users/jwalton/Library/Developer/Xcode/DerivedData/ios-env-test-eucybcfxdjhtdldxngveodcncfst/Build/Intermediates/ios-env-test.build/Debug-iphoneos/ios-env-test.build/Objects-normal/armv7/main.o
ios-env-test/main.m normal armv7 objective-c
com.apple.compilers.llvm.clang.1_0.compiler
    cd /Users/jwalton/Desktop/ios-env-test
    setenv LANG en_US.US-ASCII
    setenv PATH
"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-x objective-c -arch armv7 -fmessage-length=0 -std=c11 -Wno-trigraphs
-fpascal-strings -O0 -Wno-missing-field-initializers
-Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties
-Wno-receiver-is-weak -Wduplicate-method-match -Wformat
-Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function
-Wno-unused-label -Wno-unused-parameter -Wunused-variable
-Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas
-Wno-shadow -Wno-four-char-constants -Wno-conversion
-Wconstant-conversion -Wint-conversion -Wenum-conversion
-Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector
-Wno-strict-selector-match -Wno-undeclared-selector
-Wno-deprecated-implementations -DDEBUG=1 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
-fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g
-Wno-sign-conversion -miphoneos-version-min=5.0 -iquote
/Users/jwalton/Library/Developer/Xcode/DerivedData/ios-env-test-eucybcfxdjhtdldxngveodcncfst/Build/Intermediates/ios-env-test.build/Debug-iphoneos/ios-env-test.build/ios-env-test-generated-files.hmap
-I/Users/jwalton/Library/Developer/Xcode/DerivedData/ios-env-test-eucybcfxdjhtdldxngveodcncfst/Build/Intermediates/ios-env-test.build/Debug-iphoneos/ios-env-test.build/ios-env-test-own-target-headers.hmap
-I/Users/jwalton/Library/Developer/Xcode/DerivedData/ios-env-test-eucybcfxdjhtdldxngveodcncfst/Build/Intermediates/ios-env-test.build/Debug-iphoneos/ios-env-test.build/ios-env-test-all-target-headers.hmap
-iquote /Users/jwalton/Library/Developer/Xcode/DerivedData/ios-env-test-eucybcfxdjhtdldxngveodcncfst/Build/Intermediates/ios-env-test.build/Debug-iphoneos/ios-env-test.build/ios-env-test-project-headers.hmap
-I/Users/jwalton/Library/Developer/Xcode/DerivedData/ios-env-test-eucybcfxdjhtdldxngveodcncfst/Build/Products/Debug-iphoneos/include
-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
-I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
-I/Users/jwalton/Library/Developer/Xcode/DerivedData/ios-env-test-eucybcfxdjhtdldxngveodcncfst/Build/Intermediates/ios-env-test.build/Debug-iphoneos/ios-env-test.build/DerivedSources/armv7
-I/Users/jwalton/Library/Developer/Xcode/DerivedData/ios-env-test-eucybcfxdjhtdldxngveodcncfst/Build/Intermediates/ios-env-test.build/Debug-iphoneos/ios-env-test.build/DerivedSources
-F/Users/jwalton/Library/Developer/Xcode/DerivedData/ios-env-test-eucybcfxdjhtdldxngveodcncfst/Build/Products/Debug-iphoneos
-include /Users/jwalton/Library/Developer/Xcode/DerivedData/ios-env-test-eucybcfxdjhtdldxngveodcncfst/Build/Intermediates/PrecompiledHeaders/ios-env-test-Prefix-chjfohddmavlbmbppcmmxpmlqymu/ios-env-test-Prefix.pch
-MMD -MT dependencies -MF
/Users/jwalton/Library/Developer/Xcode/DerivedData/ios-env-test-eucybcfxdjhtdldxngveodcncfst/Build/Intermediates/ios-env-test.build/Debug-iphoneos/ios-env-test.build/Objects-normal/armv7/main.d
--serialize-diagnostics
/Users/jwalton/Library/Developer/Xcode/DerivedData/ios-env-test-eucybcfxdjhtdldxngveodcncfst/Build/Intermediates/ios-env-test.build/Debug-iphoneos/ios-env-test.build/Objects-normal/armv7/main.dia
-c /Users/jwalton/Desktop/ios-env-test/ios-env-test/main.m -o
/Users/jwalton/Library/Developer/Xcode/DerivedData/ios-env-test-eucybcfxdjhtdldxngveodcncfst/Build/Intermediates/ios-env-test.build/Debug-iphoneos/ios-env-test.build/Objects-normal/armv7/main.o

 _______________________________________________
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


  • Follow-Ups:
    • Re: Is there still no way to just compile a single file?
      • From: Gerd Knops <email@hidden>
References: 
 >Is there still no way to just compile a single file? (From: Rick Mann <email@hidden>)
 >Re: Is there still no way to just compile a single file? (From: Jens Alfke <email@hidden>)
 >Re: Is there still no way to just compile a single file? (From: Gerd Knops <email@hidden>)
 >Re: Is there still no way to just compile a single file? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Is there still no way to just compile a single file?
  • Next by Date: Unit Test "runtime information does not match" private framework
  • Previous by thread: Re: Is there still no way to just compile a single file?
  • Next by thread: Re: Is there still no way to just compile a single file?
  • Index(es):
    • Date
    • Thread