Page 1 of 1

Export for Mac OS X does not run on Intel-Based Macs?

PostPosted: Sat Oct 22, 2011 7:54 am
by flag
Hello

I am new to Ge working on a Mac (new intel based). Just exported to Mac OS X, but the app does not work.

$ file *.app
typefast-game.app: [b]Mach-O executable i386

[/b]

If I try to launch it form Finder (double-click on .app) I will get this message:
You can't open the application typefast-game.app because the [b]Classic environment is no longer supported.
[/b]

Finder also says: "Application (Classic)" in file info.

If I launch it within Terminal, it just works!
$ chmod a+x ./typefast-game.app
$ ./typefast-game.app
// WORKS!


Question: Why does it not launch within Finder? And/or how can I make it works? With shell-script?

Re: Export for Mac OS X does not run on Intel-Based Macs?

PostPosted: Sat Oct 22, 2011 9:38 am
by skydereign
The problem is that you gave it the extension .app. Because of that, mac os tries to load it as an app, where it really is just an executable. If you want to make it an app, then you'll need to use the proper packaging. You might try looking here if you want to create an app (though you don't need it to run your game). http://game-editor.com/forum/viewtopic.php?f=1&t=8733&p=68856#p68856

Re: Export for Mac OS X does not run on Intel-Based Macs?

PostPosted: Sat Oct 22, 2011 4:03 pm
by flag
So then I renamed it without .app. Works.

It opens up a shell:
$ /Users/<user>/Prj/typefast/typefast-game ; exit;
logout

[Process completed]

Re: Export for Mac OS X does not run on Intel-Based Macs?

PostPosted: Fri Oct 28, 2011 1:52 pm
by akr
GE will generate a xcode project for mac soon. This will be named macapp. These kind of problems will then be past.