Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Haxe - The Cross-Platform Toolkit
Haxe OCaml Java C# C++ Shell
Pull request Compare This branch is 52 commits ahead, 2413 commits behind HaxeFoundation:development.


latest commit 118496f0ae
@ralcr authored
Failed to load latest commit information.
extra Delete the duplicated space
libs @ f8517be update libs
std fixes
tests add haxe.rtti.Rtti so we have something resembling an API (also add t…
.gitattributes LF normalization
.gitignore readme
.gitmodules added haxelib repo in extra/haxelib_src (close #2258)
.travis.yml [TravisCI] mult-os fallback
Makefile mass replace objc with swift remove 2>/dev/null from makefile kill (does not work for me) few more fixes refactorings mass replace objc with swift [js] disallow types that "contain" Class<T> as Map key (see #2479) refactorings [js] disallow types that "contain" Class<T> as Map key (see #2479) add toplevel completion, resolve positions for position/usage complet… (As3) respect __arguments__ [cs] respect core_api_serialize : enums. [cpp] infer TEnumParameter enum from the field because the expression… Merge remote-tracking branch 'remotes/upstream/development' into brid… [java] always copy resources, even if haxe.Resources is not used [js] Add "require" to pseudo-keywords list so a local var with the sa… add Common.mkdir_from_path and use it to generate neko output directory fixes (Php) unset loop variable of TFor to avoid reference passing issues (… support Array @:runtime fields at runtime (closes #3071) add -D swf_use_doabc (Flash8) fix TEnumParameter (closes #2728) [flash9] check both original and @:getter/@:setter name to determine … ... Revert "generate Void->Void correctly"
haxe.hxproj flash12 API sync Show "proper" error message in Context.parse* functions when invalid …
lexer.mll add @:bridgeProperties, which creates native property bridges for all… ... instances are infinite sets (see #3031) detect out-of-bounds array access and cancel inlining (closes #2999) Merge remote-tracking branch 'remotes/upstream/development' into brid… properly recurse when dealing with abstract variance (closes #3063) fix silly field suggestions on enum instances (see #2939) [typeload] Add field name to error messages so macro errors can be de… consider abstracts as a with_type for structure declarations only if …

Haxe logo

Swift target for Haxe language

Haxe is an open source toolkit that allows you to easily build cross-platform tools and applications that target many mainstream platforms. The Haxe toolkit includes:

Building from sources

  1. Clone the repository using git. Be sure to initialize and fetch the submodules.

    git clone
    cd haxe
    git submodule init
    git submodule update
  2. You now need to hardcode the path to the new std lib. In file at line 810 change the first path to match yours:

    com.class_path <- ["/Users/Cristi/Documents/haxecompiler/haxe/std/";"";"/"]
  3. Build Haxe with:

    make haxe
  4. Or build Haxe and the tools with:

  5. On Mac you can run the script that will compile Haxe and will build the demos as well:

  6. If something is not working run first:

    make clean

Getting started with iOS

The starting point of your app should look like this, everything else is ignored:

public static function main() {
    return new UIApplicationMain ( AppDelegate );

Where the AppDelegate.hx conforms with the UIApplicationDelegate. This is the main method of your app, you should put the code before returning.

class AppDelegate extends UIResponder implements UIApplicationDelegate {
    public function application (application:UIApplication, didFinishLaunchingWithOptions:NSDictionary) :Bool {
        // See the demos from hxcocoa lib please
        return true;

In case i forget this is how i merge the HF/haxe repository in my local fork

git fetch upstream
git merge upstream/development
Something went wrong with that request. Please try again.