How to build on IOS tutorial?

498 views
Skip to first unread message

Mihai Morosanu

unread,
May 13, 2014, 8:56:31 AM5/13/14
to haxef...@googlegroups.com
Hi,

I have big issues with ios build.
So far:
1. install mac on vmware: done.
2. install haxe , open fl lime haxeflixel, flixel tools via command line : done
3. install sublime text editor and haxe plugin :done
4. Where all those haxe files were installed(by default)? I search but nothing appears. In windows in c: haxetoolkit , in Mac there is nothing.
5. If I download manually demos from git, and open with Sublime, and then build project an error occurs.Build not found no build.hxml

I assuse the next steps are to manage to build an xcode project from Sublime text and then be able to test on a device
But I didn't find any tutorials for this.

Please help me.

Thanks

Andrei Regiani

unread,
May 13, 2014, 8:34:44 PM5/13/14
to haxef...@googlegroups.com
/usr/lib/haxe/lib/

/usr/lib/haxe/lib/flixel
...

On Finder press SHIFT+COMMAND+G and enter the directory.

Andrei Regiani

unread,
May 14, 2014, 2:51:08 AM5/14/14
to haxef...@googlegroups.com
My instructions above are just to locate the directory of haxelib.

To build for iOS:

  • Make sure you have Command Line Tools for Xcode installed and updated to your Mac OS X version. You can download it here: Download For Apple Developers.


To compile your project:

(In your project directory) To build on Xcode, just type:
lime update ios
It opens Xcode as it were a native project, just build, test on device, upload to AppStore, that's all.

To build inside within command line (without opening Xcode every time, better for quick tests)
lime test ios


Andrei Regiani

unread,
May 14, 2014, 2:52:07 AM5/14/14
to haxef...@googlegroups.com
Before all that, make sure to setup lime:

sudo lime setup ios


Mihai Morosanu

unread,
May 15, 2014, 5:26:01 AM5/15/14
to



Hello,

Well I found that the best way to do it from sublime editor is to press:
1. CTRL+Shift+B to choose build target(only after you clicked a file in the project)
2. CTR+Enter to build a xcode project.

Andrei, your commands do the same but from outside sublime.

I want to test Project Jumper.

Problems:

1. If I test flash on playstate: it compiles , but there is only a black screen showing "There is no asset with a string "map1group_back blabla"".
2. If I compile only menustate, is good in flash but in xcode, I have an error about:Flxcamera.hx in function drawtiles too many arguments .

See image:
I use flixel 3.3.3 and the Project jumper is downloaded from master brach in git.

EDIT: Same error message with bunny mark. I did something wrong? I must link external library? Is something wrong with the draw tiles ?
Thanks

Gama11

unread,
May 15, 2014, 6:47:43 AM5/15/14
to haxef...@googlegroups.com
You need to update OpenFL / lime.

Mihai Morosanu

unread,
May 15, 2014, 11:19:23 AM5/15/14
to haxef...@googlegroups.com
Damm I feel stupid.:))
After haxelib upgrade all works fine.
Thanks.

Mauricio Cortes

unread,
Jul 31, 2015, 11:49:42 AM7/31/15
to HaxeFlixel, andre...@gmail.com
How do you add the ios certificate files to the project (to sign the app)
if you are building from the command line?
Reply all
Reply to author
Forward
0 new messages