Built MacOS App Crashes on Load

Report Construct 2 bugs here.

Post » Thu Jul 06, 2017 3:49 pm

Right, I think the problem is NW.js 0.22 is actually the first version that started using symlinks, and Windows has no concept of these symlinks at all, so they are completely lost via any way you try to copy the files. That's new and very awkward, since I'm not sure there's anything C2 itself can do to work around it...

Still, I found a workaround: on the Mac itself, download NW.js directly from https://nwjs.io/downloads/. (You should be able to do this with any version for the OS X export.) Extract the NW.js download on the Mac. It should run because it has preserved the file permissions, since you did everything on the Mac. Then export with C2 and copy the files over to the Mac any way, it doesn't matter how any more. You can open the app folder by right-clicking and selecting "Show Package Contents". Using that, you can open the C2 exported app, and copy the Contents/Resources folder. Then open the NW.js download and delete the Contents/Resources folder, and paste in the one from C2.

That basically copies the C2 game data in to an ordinary NW.js download. It seems to make a working macOS app for me which runs the game OK. It's a bit of a bigger file since C2 strips out some stuff it doesn't need, like the pnacl stuff. You can delete it yourself by going to a path in the package like Contents/Versions/<version>/nwjs Framework.framework/Internet Plug-Ins and delete the contents of that folder (a .nexe file and pnacl). That should strip ~20mb or so.
Scirra Founder
B
397
S
236
G
88
Posts: 24,423
Reputation: 194,560

Post » Thu Jul 06, 2017 6:06 pm

@Ashley

Thanks so much for the deep dive.

Good news is if i download nwjs 23 on the mac, replace the Resources folder from the C2 Export, everything is gold, the app runs fine in OSX.

Bad news is, my steamworks SDK is in windows, so the minute i move the mac app back to windows for building / uploading to steamworks, it breaks the app.

Can you think of any way to get the app file back into windows safely while preserving the symlinks?

If not, I suppose I can look into setting up the steamworks sdk to build on the mac and just deal with windows permissions stuff from bringing the windows files over to mac then uploading on the mac.. have never tried that so its mostly just unexplored territory causing apprehension haha :D
Made Cosmochoria - www.cosmochoria.com
Currently working on Slayaway Camp - www.slayawaycamp.com
B
27
S
8
G
3
Posts: 384
Reputation: 5,020

Post » Fri Jul 07, 2017 11:08 am

Honestly I think the best thing to do is just do everything on the Mac if at all possible. Transferring files to Windows and back without losing special file permissions on the symlinks is difficult - I'm not sure if it's even possible, the two OSs treat symlinks differently.
Scirra Founder
B
397
S
236
G
88
Posts: 24,423
Reputation: 194,560

Post » Fri Jul 07, 2017 11:54 pm

No prob, will setup the build environment and let you know how it goes. I cant see why it wont be golden tho, the initial problem is solved by copying the files into that fresh nwjs download :D Thanks for the help & for your time, I know you're a busy dude.

Respect.
Made Cosmochoria - www.cosmochoria.com
Currently working on Slayaway Camp - www.slayawaycamp.com
B
27
S
8
G
3
Posts: 384
Reputation: 5,020

Post » Sun Jul 16, 2017 4:15 am

A dumb question @Ashley when you said "Then export with C2 and copy the files over to the Mac" means to run an Construct 2 export to NWJS or a regular Export to HTML5?
I'm trying to create my game to run on MAC OSX the game works fine but i'm taking a lot of issues on codesign my app since NWJS documentation is a bit different structured folders, i'm not sure on how to codesign my app successfully, any help will be appreciated .
Regards
Image

Image
B
18
S
13
G
23
Posts: 19
Reputation: 13,540

Post » Mon Jul 17, 2017 10:16 am

UlisesFreitas wrote:A dumb question @Ashley when you said "Then export with C2 and copy the files over to the Mac" means to run an Construct 2 export to NWJS or a regular Export to HTML5?

I meant an NW.js export. As a general rule, each export option only works with its intended platform.
Scirra Founder
B
397
S
236
G
88
Posts: 24,423
Reputation: 194,560

Post » Tue Sep 26, 2017 7:48 pm

Have the same problem here, @Ashley. And I don't have MacOS.
Is there some fix coming up on that issue on either C2 or NW side?
B
13
S
1
Posts: 27
Reputation: 642

Post » Wed Sep 27, 2017 4:37 pm

NoSoul8 wrote:Have the same problem here, @Ashley. And I don't have MacOS.

This whole thread is about macOS. Are you having a different problem?
Scirra Founder
B
397
S
236
G
88
Posts: 24,423
Reputation: 194,560

Post » Wed Sep 27, 2017 5:25 pm

@Ashley, in short:
On my win7 PC I use standard C2's NW (v0.24.0) export options.
And MacOS version won't launch for MacOS users.
I don't have MacOS to export my game on it.

I emailed error logs and more detailed description to [email protected]
B
13
S
1
Posts: 27
Reputation: 642

Post » Thu Sep 28, 2017 10:05 am

@NoSoul8 - did you try the workaround I posted previously in this thread?
Scirra Founder
B
397
S
236
G
88
Posts: 24,423
Reputation: 194,560

PreviousNext

Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest