Welcome to iPadForums.net Guest - Click Here to Register

Reading through "Beginning iPhone games development"

This is a discussion on Reading through "Beginning iPhone games development" within the iPad Development forums, part of the iPad App Store category; An example program from this book is causing Xcode to go haywire, spewing thousands of errors over the icon in the dock, before consuming all ...

iPadForums.net is the original Apple iPad Forum! Registered Users do not see these ads. Please Register - It's Free!
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    iPad Noob!
    Member #
    38924
    Join Date
    Mar 2011
    Location
    chicago
    Posts
    3

    Reading through "Beginning iPhone games development"

    An example program from this book is causing Xcode to go haywire, spewing thousands of errors over the icon in the dock, before consuming all resources on my system.

    First of all, I'm blown away that a compiler error can nearly take my system out. I was able to get a terminal up and kill -9 everything, since finder totally stopped responding, and the button to "stop the build" didn't do anything. Look guys, it's really not that hard to spawn off a process to kill gcc. I managed to do it, why can't Xcode?

    Do developers for the iPad find this is normal? Save everything, and when you compile, hope for the best, because if you're wrong, you gotta hard kill everything or your system locks up? What kind of crap is this? I'm running Xcode 3.26 / iPhone SDK 4.3. I read that Xcode 4 is out, but it has issues of it's own (according to the Arstechnica article).

    I have been able to recreate the issue with a three line test program. I'd love some assistance to understand what is going on here.

    Anyway, here's the program. Create a new "view based application" Open up the ViewController header. Add these three lines. When you're done, your header should look like this:

    Code:
    #import <UIKit/UIKit.h>
    
    @interface defineTestViewController : UIViewController {
        #define BRICKS_WIDTH  5;
        #define BRICKS_HEIGHT 4;
        UIImageView *bricks[BRICKS_WIDTH][BRICKS_HEIGHT];
    }
    @end
    If I compile this, Xcode blows up, all ram is eaten, and my system grinds to a halt. I keep a terminal open that lets me nuke everything to regain control. Insane. I wish I could just do all of this from the command line, where I feel I have more control. I can't even find a log file to figure out what the heck is going on here. I'd like to think you can do a #define and use it when defining an array of objects.

    Help?

  2. Ads


  3. #2
    iPad Enthusiast!
    Member #
    29474
    Join Date
    Jan 2011
    Location
    Vancouver, Canada
    Posts
    31
    I think the fundamental problem here is Xcode. That book is probably out of date (if the example ever worked). Prepare for much hair pulling if you want to continue down that path OR check out this post for some alternatives. If you really want to use Xcode you will probably get better help in the Apple developer forum.

    mike
    :8^]

  4. #3
    iPad Noob!
    Member #
    38924
    Join Date
    Mar 2011
    Location
    chicago
    Posts
    3
    I think the fundamental problem here is Xcode. That book is probably out of date (if the example ever worked). Prepare for much hair pulling if you want to continue down that path OR for some alternatives. If you really want to use Xcode you will probably get better help in the Apple developer forum.

    mike

    Thanks! What is the best alternative to using xcode? I thrive in a vim/make/screen environment all at the command line. But that means losing Interface Builder, right?

  5. #4
    iPad Ninja
    Member #
    3495
    Liked
    31 times
    Join Date
    May 2010
    Location
    Switzerland
    Posts
    2,017
    Using Xcode 4 or 3. Big changes, I guess. Actually I was so disappointed in the Xcode 3 UI that I decided to wait for Xcode 4 to restart the learning process.

    I've been programming windows and X86 for many years, and I was severely disappointed by Xcode 3's UI.

  6. #5
    iPad Enthusiast!
    Member #
    29474
    Join Date
    Jan 2011
    Location
    Vancouver, Canada
    Posts
    31
    Quote Originally Posted by dextius View Post
    I think the fundamental problem here is Xcode. That book is probably out of date (if the example ever worked). Prepare for much hair pulling if you want to continue down that path OR for some alternatives. If you really want to use Xcode you will probably get better help in the Apple developer forum.

    mike
    Thanks! What is the best alternative to using xcode? I thrive in a vim/make/screen environment all at the command line. But that means losing Interface Builder, right?
    Take a look at the Airplay SDK. It might be more up your alley. Interface builder is good for UI heavy apps but you will probably need to bypass it anyway and use core animation if you are doing any animation or rendering in your app.

    mike
    :8^]

  7. #6
    iPad Noob!
    Member #
    38924
    Join Date
    Mar 2011
    Location
    chicago
    Posts
    3

    Thanks

    Just wanted to say thanks for both of your replies. I'm going to give xCode 4 a chance, and then try AirPlay. Thanks again.


Home | Forum | Active Topics | What's New

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. Any other games like "Words with Friends" or "Pirate Battle?"
    By Lend27 in forum iPad General Discussions
    Replies: 7
    Last Post: 03-21-2012, 06:30 PM
  2. "Iron Wars" - new 3D shooter game for iPhone / iPad
    By AppMania in forum iPad App Announcements
    Replies: 1
    Last Post: 12-16-2010, 05:22 PM
  3. Nice book : "Beginning Web Development for Smartphones"
    By mobilewebdeveloper in forum iBooks
    Replies: 1
    Last Post: 09-30-2010, 04:20 PM
  4. First iPad "HD" games already in iTunes preview...
    By brobar in forum iPad General Discussions
    Replies: 4
    Last Post: 03-25-2010, 07:50 PM

Search tags for this page

beginning ios game development code
,

how to make a game using xcode 4

,
ipad game development examples
,
make a game using xcode 4
,
sample code for any ipad game developed in xcode
,
sample game for xcode
,

xcode 3.26

,
xcode game examples
,
xcode game ipad samples
,
xcode sample game
Click on a term to search for related topics.