Skip to content

Instantly share code, notes, and snippets.

@darcyliu darcyliu/command.sh
Created Jun 4, 2014

Embed
What would you like to do?
Hello World for Swift and C
export PATH="/Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode6-Beta.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift hello.swift
clang world.c -oworld
println("Hello, world")
#include <stdio.h>
int main(){
printf("Hello World!\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.