Game Development Community

Having trouble compiling for device...[SOLVED]

by Daniel Hopkins · in iTorque 2D · 11/30/2009 (6:58 pm) · 2 replies

Hey,

I received my developer certificate today, so I figured I'd try and get a simple iTGB game on my iTouch. To start, I built the scene, made the necessary adjustments to the files, imported the resources into Xcode, and built the game for the simulator. Everything runs fine. I then did a "Clean All," changed the active SDK to iPhone Device - 3.1.2, starting building, and received this compile error numerous times:

#include <CoreServices/CoreServices.h> No such file or directory

My settings are:

Active SDK: iPhone Device - 3.1.2
Active Target: iTGB
Active Configuration: Release
Compiler Version: GCC 4.2
OS: Snow Leopard 10.6

I did a search and found several versions of this file, but don't really know what to do about it (or even if it's referring to one of them--none were located in a "CoreServices" directory). What do I need to do? Do I need to change some settings and if so, which ones? Any help would be greatly appreciated!

Thanks,
Daniel

#1
12/01/2009 (12:33 pm)
Update: I downloaded and installed iTGB 1.3 beta and get the same problem. I then tried commenting out the line, as I read somewhere that library is not available for the iPhone/iTouch device--only for the simulator. It seemed to help, but I still received some errors (just a lot less). The errors had to do with certain variable types (such as "Duration" "Byte" and "OSStatus") not being recognized.

If someone would guide me as to how to fix the problem, that would be great!

#2
12/01/2009 (9:42 pm)
Ok, I re-installed the Xcode/iPhone SDK, only this time I left the "UNIX development" option checked. After reloading everything, my game will now compile and run on the device.