Game Development Community

Compile iTGB against 3.0 SDK

by Mike Moore · in iTorque 2D · 06/24/2009 (7:57 am) · 10 replies

Hello,

I have tried everything to compile my game against 3.0 SDK but I just can´t. So the question is: is iTGB 1.2 3.0 SDK compatible?

Thanks

#1
06/24/2009 (8:05 am)
I've no problem compiling it against the 3.0 SDK
Sure that you altered the Base SDK and not just the deploy target (which is insufficient as the build will fail if base SDK != deploy version)
#2
06/24/2009 (12:29 pm)
some um yeah, our update has been twice rejected for not being compatible with 3.0 we have players that have updated there devices can't play our game any more because it isn't compatible. Is there anything we can do to hot fix the dang thing? At this point we can't submit an update, which we have people waiting for, until we are compatible and we have more games on the way but we kind have come to a halt with the engine work.

It seems as though you guys are working with 3.0 but given our low experience level we're not sure how your are getting around it. Is there a cheat sheet somewhere? We could really use one if we are going to have to wait for iTGB 1.3
#3
06/24/2009 (2:31 pm)
@Marc,

I´m not sure that the Base SDK I´m using is altered. I have a fresh 3.0 SDK installed on my machine and there is no way I can´t port the game to the iPhone. I did in the past (before the 3.0 SDK updating and right now I´m completely lost).

What I´m doing (and did for sure before 3.0) is, step by step:

1) I run the game in iTGB so that iTGB compiles all the game scripts.
2) I then click on Build inside iTGB and select the options I want (OS version, debug/release mode and a couple of other options).
3) iTGB then creates a project for Xcode from the chosen options from iTGB and starts up Xcode for me.
4) Xcode then collects all the files together (iPhone security certificates) and then build / compiles the game. It's at this point where it will tell me if there's anything a bit funny with the code (warnings (ok) and errors (stops the game from been made)).
5) It should then go off and transfer the game to the iPhone / iPod and run it for me.

But it's at point 4 that I get the errors that doesn´t let me reach point 5.

The question is, what I´m doing wrong or what I must do to get the game into the iPhone???

I´m wondering how iTGB 1.2 will be 3.0 SDK compatible if 3.0 is a new release???

GG staff,

I´m desesperate right now and I´m sure lots of people are having the same problem, please give us details on how to port the game to the real hardware.

Thanks!
Mike.
#4
06/24/2009 (2:46 pm)
I´m confused right now after reading this at www.garagegames.com/community/forums/viewthread/93489

Quote:iTGB 1.3: The highest priority is upgrading the engine to work with the 3.0 OS and SDK for iPhones. This includes compatibility and integrating the new features.

* Compile iTGB against 3.0 SDK, with GCC 4.2

So, it´s 1.2 3.0 SDK compatible or not? Are there hidden workarounds I should be aware of?

Thanks,
Mike

#5
06/24/2009 (3:20 pm)
What is your error? Does it say that no CFBundleExecutable exists? Is it a code signing issue?

If it's a CFBundle problem, you need to ensure that the Product Name property is set (you can do this by viewing the info for the project/targets and naming your app bundle).

If it's a code signing issue, make sure that your certificates are in your default keychain. (The iPhone developer site outlines this very well)
#6
06/24/2009 (5:08 pm)
Note: You can set all base SDKs to 3.0 and deployment target to the lowest OS version you want to support. Apple also recommend that if you want to support 3.0 features on 3.0 devices from a binary also supporting 2.x.
#7
06/24/2009 (9:42 pm)
When moving to the 3.0 SDK we also had to go to the Apple Dev Portal and set up a new dev profile for codesigning. The old development codesign profile we had didn't work with 3.0. Could that be your problem? We got everything working fine now.
#8
06/24/2009 (11:00 pm)
@Tariq
The error message I get is "Couldn't inspect the application package".
I don't think it's a Certificate problem as it does build the APP, but I get the above error message when it goes to transfer the APP to the device.
My Base SDK is set at 2.0 (If I tick 3.0 I get 80% errors in the build).
In Xcode I'm using the following setup:
Active Target: iTGB
Active Config: Debug
Active Target: iTGB
Active Executable: iTGB - Mike's iPod

One thing I did notice is that when I try the game out in the simulator, the simulator just black screens!

I think I may need to un-install everything (Xcode and iTGB) and start again. Anything I should look out for when doing this?

Thanks,
Mike.
#9
06/24/2009 (11:00 pm)
You can not use Build in the TGB Editor against OS3 SDK.
You must alter the project manually yourself.

I filed a bug report on this yesterday to ensure its not forgotten.

If you altered it yourself, then building should go fine.


As for the beeing rejected: chances are high that your loading time is too high. On OS3, apps normally take 3-5s more to load on old devices (iPhone 3G and older)
#10
06/25/2009 (12:31 am)
@Marc
It can't be down to loading times as the error comes up almost straight away it finishes building the APP. Also with it been in Debug mode, I didn't think the time limit counted (not that it's getting that far).
I'm going to capture the screen when I get home so I can see what the messages are at the bottom of the Xcode screen as at the moment it disappears to quickly.
Thanks,
Mike