How to build a stand-alone package on a Mac?
by Eero Karvonen · in Torque 2D Beginner · 09/18/2014 (11:18 am) · 5 replies
I have Xcode 5.1.1. When I compile Torque2D 3.0, it builds without errors when the building scheme is "Release". But when I use the "Shipping" scheme, there are 12 errors in mathTypes.cc, and I lack the understanding to say if this is due to a trivial setting or something bigger.
On the other hand, I don't know if the "Shipping" scheme is the right way to go at all, because no document says directly about the steps to create a stand-alone .app.
On the other hand, I don't know if the "Shipping" scheme is the right way to go at all, because no document says directly about the steps to create a stand-alone .app.
#2
09/18/2014 (11:32 pm)
When you say stand alone app, are you looking for a way to package all of your script files and assets inside the .app file, so they are not directly visible to the end user?
#3
09/20/2014 (4:19 am)
Mike, yes that's what I mean. Is there a file where I should list all my assets to be included? For now, the "Release" build packs nothing except the engine in the .app file.
#4
09/21/2014 (9:39 pm)
To be honest, I'm not 100% sure how to go about doing that. My guess is that you have to set this up inside Xcode. Have a look at the iOS project file, there's a copy bundle resources step which grabs main.cs plus the contents of the modules folder as the last step in the build process. You will probably have to do the same thing to package everything in OSX.
#5
The only difference I can see is in the preprocessing of the two types (release vs shipping). Have you made changes to the mathTypes.cc or maybe run a diff between it and a vanilla from git to see what may be different? What are the errors? If you made no changes maybe getting a fresh copy into your build may fix it.
Mind you I'm not an expert with Xcode, yet. :)
09/24/2014 (1:08 pm)
I've tested with the latest (as of 9/23/2014) from git on my mac w/ xcode 5.1.1 as well. The shipping option only seems to appear when building without iOS. When I build, it throws no significant errors (unused entities, etc...) and nothing about the mathTypes.cc.The only difference I can see is in the preprocessing of the two types (release vs shipping). Have you made changes to the mathTypes.cc or maybe run a diff between it and a vanilla from git to see what may be different? What are the errors? If you made no changes maybe getting a fresh copy into your build may fix it.
Mind you I'm not an expert with Xcode, yet. :)
Torque Owner Richard Ranft
Roostertail Games