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

Mac specific questions and discussion

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

Postby flag » Sat Oct 22, 2011 7:54 am

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?
flag
 
Posts: 2
Joined: Fri Oct 21, 2011 7:58 am
Score: 0 Give a positive score

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

Postby skydereign » Sat Oct 22, 2011 9:38 am

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
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

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

Postby flag » Sat Oct 22, 2011 4:03 pm

So then I renamed it without .app. Works.

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

[Process completed]
flag
 
Posts: 2
Joined: Fri Oct 21, 2011 7:58 am
Score: 0 Give a positive score

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

Postby akr » Fri Oct 28, 2011 1:52 pm

GE will generate a xcode project for mac soon. This will be named macapp. These kind of problems will then be past.
Co-Developer of GE engine

If u are interrested in new features of apple or android ge engines check the engine support website game-editor.net regulary.
akr
 
Posts: 453
Joined: Thu Feb 25, 2010 7:56 pm
Location: Germany, Ulm
Score: 40 Give a positive score


Return to Mac

Who is online

Users browsing this forum: No registered users and 1 guest

cron