Building app for Mac "Unable to open project"
by Nate Gertsch · in iTorque 2D · 08/19/2009 (7:05 pm) · 9 replies
I'm working with an iphone app using iTBG and for testing purposes I would like to have an app file that I can give to other people who can test it on their macs. There is also the possibility of porting the game to PC/Mac later and I would like the ability to do that eventually. I saw that there was a build folder that contained app files for the iphone OS when I compiled the code using the Xcode_Iphone project but I didn't see any that were for the Mac OS. I did a bit of searching and it seems like the established way is to use torque's build project command but I ran into a problem here. I can go into iTBG, select build project and chose mac as my platform but I can't actually get it to generate an app. When I click build, it give me an error message saying that,
"Project /Users/dpiguest/Desktop/iTGB/iTGB_1_2/engine/compilers/Xcode_iPhone/Torque2D.xcodeproj cannot be opened because the project file cannot be parsed."
I've verified that the project file actually exists (I use it for compiling to the iphone) and that the path is correct. I'm not sure what I'm doing wrong here, or even if this is possible using iTBG. Does anyone know the correct procedure for building an app for the Mac OS?
"Project /Users/dpiguest/Desktop/iTGB/iTGB_1_2/engine/compilers/Xcode_iPhone/Torque2D.xcodeproj cannot be opened because the project file cannot be parsed."
I've verified that the project file actually exists (I use it for compiling to the iphone) and that the path is correct. I'm not sure what I'm doing wrong here, or even if this is possible using iTBG. Does anyone know the correct procedure for building an app for the Mac OS?
#2
08/19/2009 (7:37 pm)
Hmm, it appears that the build command is trashing my xcode project every time. It does this on a fresh copy of iTGB when I try to build for the mac platform and I can't open the xcode project afterwards. Fortunately, I can easily restore the project from a backup but I haven't made any progress towards getting my game as an app file.
#3
Has anyone successfully generated an mac app file and how do you do so?
08/21/2009 (6:41 pm)
So is there a way to generate a mac app using Xcode? I apologize if I'm missing something simple but there doesn't seem to be a way using the xcode project provided by iTBG. The build menu in iTGB has yet to work for me or do anything beyond corrupt my xcode project and the app files generated by the xcode_iphone project are for the iphone OS. The Has anyone successfully generated an mac app file and how do you do so?
#4
08/21/2009 (7:31 pm)
There is one xcode project for iphone and one for the mac.
#5
1) Opening up the torque2d.xcodeproject under iTGB/engine/compilers/Xcode
2) Add main.cs + common + game folders from my project
3) Change target to 10.4/TBGgame
4) Clean/Run project and see game come up and work fine.
5) Look around for nice app file that I can use for testing
6) Repeat step 5
7) Make post on itgb forums
8) ???
9) World conquest
08/21/2009 (7:54 pm)
That would be the project under the folder "xcode" right? I searched though that without finding a nice app file like the one generated by the xcode_iphone project. Here's the steps I'm going1) Opening up the torque2d.xcodeproject under iTGB/engine/compilers/Xcode
2) Add main.cs + common + game folders from my project
3) Change target to 10.4/TBGgame
4) Clean/Run project and see game come up and work fine.
5) Look around for nice app file that I can use for testing
6) Repeat step 5
7) Make post on itgb forums
8) ???
9) World conquest
#6
I have the same error:
www.garagegames.com/community/forums/viewthread/100025
...and still no solution...
08/24/2009 (8:43 am)
Hi, NateI have the same error:
www.garagegames.com/community/forums/viewthread/100025
...and still no solution...
#7
08/24/2009 (1:36 pm)
I don't think it's the same issue. I can compile using Xcode all day long without issue, it's only when I try to use the build project command in iTGB that the xcode project becomes corrupted. The problem is that the build project seems to be the only way to build a mac/windows distribution.
#8
I think that we have the same error:
This problem occurs on my mac where I can compile using Xcode but where I cannot use the build command in iTGB.
08/24/2009 (2:04 pm)
Hi, NateI think that we have the same error:
This problem occurs on my mac where I can compile using Xcode but where I cannot use the build command in iTGB.
#9
This app would now run my game but unfortunately, I have to replace iTBG when I'm done as it seems to mess up tgb even after I removed the files I added in resources and recompiled. It's an extra hassle but not too much of an issue.
08/24/2009 (5:36 pm)
Hmm, I have another issue that prevents me from testing if this is really working but I think I found a work around to using the build command. For me what (appeared) to work was opening up the torque2d project (under xcode not xcode_iphone) and adding the game and common folders and the main.cs to the resources. I then changed the target to TBGgame and compiled the project. After the project was compiled, I went to itbg/tbg/gamedata/t2dproject and copied the tgbgame.app file there.This app would now run my game but unfortunately, I have to replace iTBG when I'm done as it seems to mess up tgb even after I removed the files I added in resources and recompiled. It's an extra hassle but not too much of an issue.
Torque 3D Owner Marc Dreamora Schaerer
Gayasoft
you can't not fix it without a backup / getting it from the package again